Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アラートを却下した後、iOS でテキストフィールドを開く方法はありますか (ユーザーがクリックしたように (キーボードを表示))? どこから始めればいいのかわからないので、表示するコードはありません! :)
メソッドを実装しUIAlertViewDelegate ます。
UIAlertViewDelegate
メソッドで、プロパティclickedButtonAtIndex:を変更するか、テキストフィールドを表示するコードを配置しますhiddenaddSubview:
clickedButtonAtIndex:
hidden
addSubview:
そしてキーボードを立ち上げます
[textField becomeFirstResponder];