ios - Tapping on button dismisses the keyboard instead of calling its TouchUpInside event -


i have viewcontroller single textfield , 1 button , when start editing text in textfield,keyboard pops up.

now if tap on button, closes keyboard first on second tap button's touchupinside event gets fired.

that means if want tap on button need tap twice i.e; first tap closes keyboard , can tap on button.

i able tap on button without closing keyboard. using iqkeyboardmanager , don't know if can cause of such behaviour.

this iqkeyboardmanager code

iqkeyboardmanager.sharedmanager().enable = true iqkeyboardmanager.sharedmanager().shouldresignontouchoutside = true iqkeyboardmanager.sharedmanager().touchresignedgestureignoreclasses = [uinavigationbar.self,uicontrol.self 


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -