Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top