当用户点击Iphone中的Return键时如何导航到其他视图?

时间:2012-06-29 05:45:35

标签: ios5 uinavigationcontroller

我正在使用IOS 5.0,我正在开发简单的应用程序,因为我使用UITextFiled当用户点击Keypad中的Return键时如何导航到其他视图。如果有人知道帮助我。提前谢谢

1 个答案:

答案 0 :(得分: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:)];