Some UITextfields don't respond in iOs6

可紊 提交于 2019-12-04 07:09:35

I found out what was causing the problem. From the viewcontroller I present the new viewcontroller from a textfield was firstResponder. So when I cancel this by calling

[textview resignFirstResponder]; 

or

[self.view endEditing:YES];

BEFORE presenting the new viewcontroller, it works without problems. Question remains.... Why is this? And is there a better way to overcome this? I don't feel much for resigning every textfield throughout my app...

I know this post is old, but if it help, in iOS6 yo also need to resign the responder in the "granparents" views.

Ex:

Search View (don't resign responder) -> Detail View -> Super Detail View (This one have the problem).

Detail View dont have first reponder, but Search View has it.

We have to resign the responder in Search view to solve the problem in Super Detail View.

I assume that we also have to resign responder in the previws controllers of Search View.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!