I have the following observer in my ViewController.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillChangeFrame:) name:UIKeyboardWillChangeFrameNotification object:nil];
This view controller also conforms to the UITextFieldDelegate and UITextViewDelegate and implements textFieldDidBeginEditing
and textViewDidBeginEditing
.
Now, here's the weird part.
If you tap on the UITextField, the order of calls is textFieldDidBeginEditing
AND THEN keyboardWillChangeFrame:
.
If you tap on the UITextView, the order of calls is keyboardWillChangeFrame
AND THEN 'textViewDidBeginEditing'.
Anyone not see a problem with this? Shouldn't text_____DidBeginEditing be called first no matter whether it's a Field or View. Why is this?
It's leading to weird animation issues. I need it to be consistent one way or the other.