Unable to select UITextField

泄露秘密 提交于 2019-12-11 08:46:21

问题


I'm using Interface Builder.

In my XIB file I have a UIView that I'm using as a "container" view to hold my UITextFields.

I have three UITextField in that UIView.

They are all wired up to an IBOutlet and the delegate for each is wired to the File's Owner.

Everything in Interface Builder has 'User Interaction Enabled' checked.

I can select, meaning click on to bring up the keyboard, the top two UITextFields.

When I click on the third (bottom) UITextField, nothing happens. The keyboard will not appear.

I can programmatically set it to becomeFirstResponder, but when I click on it via Simulator, or tap on it via device, nothing happens.

What could I be overlooking?


回答1:


Make sure that your third UITextField or given delegate connection in file owner's. and make sure that your third Textfield is inside your current view.



来源:https://stackoverflow.com/questions/23575727/unable-to-select-uitextfield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!