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 5.0を使用しており、ユーザーがキーパッドからReturnキーをクリックしたときに他のビューに移動する方法をUITextFiledを使用しているという点で簡単なアプリケーションを開発しています。
- (void)someAction:(id)sender { // do something (like pushing a new view) //when the user hits <enter> in the text field }
次に、これらの行を使用します...
[myTextField setTarget:self]; [myTextField setAction:@selector(someAction:)];