Created
July 5, 2012 00:25
-
-
Save joaofranca/3050274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) keyboardDidShow:(NSNotification *)nsNotification { | |
NSDictionary * userInfo = [nsNotification userInfo]; | |
CGSize kbSize = [[userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; | |
CGRect newFrame = [table frame]; | |
CGFloat kHeight = kbSize.height; | |
if(UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)){ | |
kHeight = kbSize.width; | |
} | |
newFrame.size.height -= kHeight; | |
[table setFrame:newFrame]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment