我正在使用IOS 5.0,我正在开发简单的应用程序,因为我使用UITextFiled当用户点击Keypad中的Return键时如何导航到其他视图。如果有人知道帮助我。提前谢谢
答案 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:)];