开发者

Why doesn't a tap on UITextField open the keyboard?

I'm very new to Objective-C and Cocoa Touch. I have been following tutorials from a book. Currently I have a UITextField that is supposed to open the keyboard on a tap from the us开发者_JAVA百科er to enter input.

However, when I run the app, nothing happens when I tap on the text field. I've checked all its attributes and made sure that it's enabled and user interaction is enabled.

Is there something really obvious I'm missing? I've read the tutorial two to three times, and I can't figure out what's wrong.


have you linked everything in interface builder (if you created the textfield by XIB)


Set that textfield as firstresponder. See How do I set the firstresponder?.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜