I am trying to adjust my scroll view to prevent keyboard from covering UITextField
. I've managed to do it based on answers in this post and Apple docs.
Using
CGRect keyboardSize = [[userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue];
returns correct CGRect for a default keyboard, however it doesn't calculate it properly when user has third-party keyboard installed. For example SwiftKey keyboard.
Any ideas as how to calculate keyboards frame/height even if custom keyboard is being used?