Ios keyboard moves my fixed nav position title

I have a navigation bar that locks to the top of the window when scrolling. However, when I click on the input and the keyboard pops up, the fixed nav position moves and gets stuck in the wrong position. Any way to fix this?

Also, I cannot close the keyboard by clicking it.

+5
source share
1 answer

I'm not sure why your navigation bar will move. If you subclass or use the UINavigationControlller, then the navigation bar will be displayed by default, but you can always hide it. If you do not want this and just want a UINavgivationBar, not the stack of view controllers that you get with the controller, than its possible frame movement. I suggest using a navigation controller instead, so that your bar never moves.

, . "" , resignFirstResponder , , . - NSMutableArray UITextfieldDelegate .h - (void) textfiedDidBeginEditing: (UITextfield *) textfield .m textfied . , IE, . , - UIButton , , mutablearray resignFirstResponder , .

, .

!

0

All Articles