I have replaced the iOS keyboard with a my own view. Now I have a requirement to get the size of the default iOS keyboard that I have replaced earlier.But the UIKeyboardDidShowNotification is giving the size of my custom view. Not the size of the default iOS keyboard.
Is there any way to get the size of iOS default keyboard size despite it is currently replaced by some other view.
Any help will be highly regarded.
- (void)someMethodWhereYouSetUpYourObserver
{
// This could be in an init method.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myNotificationMethod:) name:UIKeyboardDidShowNotification object:nil];<br>
}
- (void)myNotificationMethod:(NSNotification*)notification
{
NSDictionary* keyboardInfo = [notification userInfo];
NSValue* keyboardFrameBegin = [keyboardInfo valueForKey:UIKeyboardFrameBeginUserInfoKey];
CGRect keyboardFrameBeginRect = [keyboardFrameBegin CGRectValue];<br>
}
Above mentioned method is not giving the size of the default keyboard size. Because I have replaced the default key board with my view. What I want is the dimensions of previously replaced keyboard size. Not the current one.