I\'m trying to add a \"done\" button to the UIKeyboadnumpad, but with no success. What\'s wrong in my code?
the keyboard don\'t have the done button
Write your add button's code in
- (void)keyboardDidShow:(NSNotification *)note
instead of
- (void)keyboardWillShow:(NSNotification *)note
For this implement UIKeyboardDidShowNotification
notification like :
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:)
name:UIKeyboardDidShowNotification object:nil];
I think UIView* keyboard;
is not getting the keyboard's view as keyboard is not displayed yet, it will display !!!