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.
UITextField を作成して、タッチすると特定のメソッドが実行され、条件が正しければ (そのメソッド内でテストされます)、通常の「キーボードを起動する」メソッドが実行されます。これどうやってするの?
UITextField のデリゲートを設定する
textField.delegate = self;
次に、デリゲート内で次を実装します。
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { if (condition) { return YES; } else { return NO; } }