Some UIText fields do not respond in iOs6

Since upgrading to iOS 6, I have this weirdest mistake when trying to create a UITextField or UITextView firstResponder.

... this does not work.

I cannot select a field or view and open the keyboard, and there is also no cursor or anything else. The strangest thing is that it works only for SOME fields, while others in different viewing managers work without problems.

I have:

[self.window makeKeyAndVisible]; self.window.rootViewController = self.viewController; 

in the appDelegate app. It worked and still works without problems with iOS 5.

Any ideas on what this could be?

Thanks!

+6
source share
2 answers

I found out what caused the problem. From the viewcontroller, I present a new viewcontroller from the firstResponder text box. Therefore, when I cancel it, causing

 [textview resignFirstResponder]; 

or

 [self.view endEditing:YES]; 

BEFORE introducing the new view manager, it works without problems. The question remains ... why? And is there a better way to overcome this? I don’t really like to put off every text field throughout the application ...

+3
source

I know this post is outdated, but if that helps, in iOS6 you also need to undo the responder in the granparents views.

Example:

Search in view mode (do not change the responder) β†’ Detailed view β†’ Super detailed view (this has a problem).

The detailed view does not have a first review, but Search View has it.

We must cancel the responder in the search box to solve the problem in the Super Detail view.

I assume that we also need to cancel the responder in previous Search View controllers.

+2
source

Source: https://habr.com/ru/post/926216/


All Articles