Created
September 8, 2011 23:31
-
-
Save mikeyk/1205091 to your computer and use it in GitHub Desktop.
Revisions
-
Mike Krieger revised this gist
Sep 8, 2011 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ @implementation NSNotification (KeyboardHeight) - (CGFloat)keyboardHeight { CGRect startFrame; NSValue *startFrameValue = [self.userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey]; if (startFrameValue) { [startFrameValue getValue:&startFrame]; return startFrame.size.height; } else { return 0; } -
Mike Krieger revised this gist
Sep 8, 2011 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ @implementation NSNotification (KeyboardHeight) - (CGFloat)keyboardHeight { CGRect bounds; NSValue *boundsValue = [self.userInfo objectForKey:UIKeyboardBoundsUserInfoKey]; if (boundsValue) { [boundsValue getValue:&bounds]; return bounds.size.height; } else { return 0; } } @end -
Mike Krieger revised this gist
Sep 8, 2011 . 2 changed files with 14 additions and 14 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ @implementation NSNotification (KeyboardHeight) - (CGFloat)keyboardHeight { CGRect bounds; NSValue *boundsValue = [self.userInfo objectForKey:UIKeyboardBoundsUserInfoKey]; if (boundsValue) { [boundsValue getValue:&bounds]; return bounds.size.height; } else { return 0; } } @end 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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +0,0 @@ -
Mike Krieger revised this gist
Sep 8, 2011 . No changes.There are no files selected for viewing
-
Mike Krieger revised this gist
Sep 8, 2011 . No changes.There are no files selected for viewing
-
Mike Krieger revised this gist
Sep 8, 2011 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ @implementation NSNotification (KeyboardHeight) - (CGFloat)keyboardHeight { CGRect startFrame; NSValue *startFrameValue = [self.userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey]; if (startFrameValue) { [startFrameValue getValue:&startFrame]; return startFrame.size.height; } else { return 0; } } @end -
Mike Krieger created this gist
Sep 8, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ @implementation NSNotification (KeyboardHeight) - (CGFloat)keyboardHeight { CGRect bounds; NSValue *boundsValue = [self.userInfo objectForKey:UIKeyboardBoundsUserInfoKey]; if (boundsValue) { [boundsValue getValue:&bounds]; return bounds.size.height; } else { return 0; } } @end