UITextField becomes first responder when view becomes visible, but I don't want it to
I found a fix, but its not a very good one.
Found that canBecomeResponder message was being passed to the textfield right after viewWillAppear
and before viewDidAppear
.
So I set a BOOL value in viewDidAppear
to YES, and used that value in textField:shouldBeginEditing
method. Basically if the viewDidAppear
was not called yet, textField:shouldBeginEditing
was returning NO.