views:

60

answers:

1

I have a very simple screen with an UITextField with the default configuration, nothing special.

When I touch the UITextField, the keyboard doesn't pops up.

I haven't any custom control, behavior or anything else, just that, but it doesnt'work.

I've done this in previous apps iPhone/iPad apps already on the AppStore but i can't figure out what's going wrong here.

The UITextField is created in Interface Builder, in the nib file.
I've been doing some research and i added an IBAction in the UIViewController for UItextField TouchDown event and the IBOutlet for the UITexField.
In the first line of the code i added:

[textFild becomeFirstResponder];

That's the default behavior of the UITextField, when you touch it, it becomes the first responder asking the system to show the keyboard.
I debugged it and it runs that line, but the keyboard still doesn't shows up.
Thanks in advance.

A: 

I already figured out by myself! I had tha UITextField in a UIViewController that gets presented from another view controller who responds to motion events, and that previous View Controller was allways the First Responder. All I had to do was everytime i leave the controller's view in viewWillDisappear:(BOOL)animated, i called [self resignFirstResponder]; and that was all.

sicario