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.
キーボードを非表示にしたくありませんが、タップ完了/リターンキータイプをシミュレートするため、関数の1つが呼び出されます。
UITextFieldInputTraits?
UITextFieldInputTraits
正しい方法で私を導いていただければ幸いです。
UITextField デリゲート メソッドを使用します。
- (BOOL)textFieldShouldReturn:(UITextField *)textField { [self myFoo]; return NO; }
タッピングリターンをシミュレートする必要がある場合は、次のようにこの関数を呼び出します。
[self textFieldShouldReturn:nil];