In one of my apps, when I try to edit (type some text) UITextField, UITextView or any other ‘text-able’ UIControl the cursor just blinks but no characters are typed in except BACKSPACE (possible only when I have some initial text in it), RETURN and switching character types. This goes to all controls across whole application.
Summary:
- It happens only from iOS 6.0 (does not occur on iOS 5.x, 4.x neither Simulator or real device)
- All delegate methods are fired (shouldBeginEditing: didBeginEditing:) except shouldChangeCharactersInRange:
- isFirstResponder flag is behaving set correctly (shouldBeginEditing: logs NO, while didBeginEditing: logs YES correctly). It is also tested using logs that THE firstResponder IS the one already edited.
- It repairs itself after any
UIAlertViewis presented to the user and dismissed. It doesn’t matter if this alert is shown on the same screen (UIViewController view) or any other.
I have no idea how to even approach or debug this.
Where should I look for hints? Any experts of tracking responder chain related issues etc.?
How can I track down the UIAlertView‘s effect on the issue?
Depending on your implementation it’s either the
makeKeyAndVisiblemethod of theUIWindowclass that you forgot to call inside the- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptionsmethod of the application delegate or correspondingVisible at Launchflag in your main interface xib file.Cheers… 🙂