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.
iPhoneの入力パッドには「完了」ボタンがありますが、デフォルトではアクションはありません。アクションを追加できますか?たとえば、「完了」が押されたときに入力パッドを非表示にしますか?
キーボードデリゲートでは、フォーカスをあきらめる必要があります。例えば
- (BOOL)textFieldShouldReturn:(UITextField *)aTextField { [aTextField resignFirstResponder]; return YES; }
これは、doneキーとreturnキーの両方で機能します。