-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added example in demo that handles keyboard showing
- Loading branch information
Alvise Susmel
committed
Jun 9, 2013
1 parent
2a7927d
commit 8131c50
Showing
10 changed files
with
150 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Binary file modified
BIN
-477 Bytes
(99%)
...codeproj/project.xcworkspace/xcuserdata/alvise.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// FPPopoverKeyboardResponsiveController.h | ||
// FPPopoverDemo | ||
// | ||
// Created by Alvise Susmel on 09/06/2013. | ||
// Copyright (c) 2013 Fifty Pixels Ltd. All rights reserved. | ||
// | ||
|
||
#import "FPPopoverController.h" | ||
|
||
@interface FPPopoverKeyboardResponsiveController : FPPopoverController | ||
@property (assign, nonatomic) CGFloat keyboardHeight; | ||
@end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// FPPopoverKeyboardResponsiveController.m | ||
// FPPopoverDemo | ||
// | ||
// Created by Alvise Susmel on 09/06/2013. | ||
// Copyright (c) 2013 Fifty Pixels Ltd. All rights reserved. | ||
// | ||
|
||
#import "FPPopoverKeyboardResponsiveController.h" | ||
|
||
|
||
|
||
@implementation FPPopoverKeyboardResponsiveController | ||
|
||
|
||
|
||
|
||
-(CGFloat)parentHeight | ||
{ | ||
return _parentView.bounds.size.height - self.keyboardHeight; | ||
} | ||
|
||
|
||
|
||
@end |
This file contains 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
This file contains 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
This file contains 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