固定键盘在UIView中 [英] Fixed keyboard inside a UIView
本文介绍了固定键盘在UIView中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在视图中包含键盘? 我希望它成为视图的一部分,而不是被忽视.
Is there a way to include a keyboard inside of a view? I want it to be part of the view and not be dismissed as well.
Birdfeedapp在其添加帐户"模式视图中执行此操作.
Birdfeedapp does this in it's 'add account' modal view.
推荐答案
只需将这段代码添加到您的视图中. 这将显示键盘:
Simply just add this code to your view. This will show the keyboard:
-(void) viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
[YOURTEXTVIEW becomeFirstResponder];
}
这篇关于固定键盘在UIView中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文