我得到了一个带有文本字段的简单详细视图。
在详细的viewController中我写了这段代码:
- (void) viewDidAppear:(BOOL)animated{
[self.textField becomeFirstResponder];
NSLog(@"is textField 1st responder %d", [self.textField isFirstResponder]);
}
当我将详细信息推入导航控制器时,我看到“是文本字段第一响应者 0“在我的日志中。
键盘不出现。
但文本字段的光标闪烁。
What happens in this moment? Why the keyboard doesn't appears? I did try to catch a notification "KeyboardDidShown" in my AppDelegate but didn't catch anything:
这是我的主视图设计:
是否打电话reloadInputViews
help?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)