0

私はIOS 5.0を使用しており、ユーザーがキーパッドからReturnキーをクリックしたときに他のビューに移動する方法をUITextFiledを使用しているという点で簡単なアプリケーションを開発しています。

4

1 に答える 1

1
- (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:)];
于 2012-06-29T05:51:13.003 に答える