문제

I'm currently implementing in my app functionality that my UITextField would not be covered by the keyboard (when edited). It is pretty straight forward with the keyboard notification methods :

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(p_keyboardWasShown:)
                                             name:UIKeyboardDidShowNotification object:nil];

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(p_keyboardWillBeHidden:)
                                             name:UIKeyboardWillHideNotification object:nil];

But the problem with this is that they do not launch when the keyboard is in a different place (for example top) or split.

Any advice how to handle these situations?

도움이 되었습니까?

해결책

Great article Working With Keyboard on iOS: http://macoscope.com/blog/working-with-keyboard-on-ios/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top