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?.
精彩评论