-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added demo for 'preventShowingBottomBlankSpace' #93.
Former-commit-id: aa3bac7
- Loading branch information
1 parent
80f37a8
commit 341019c
Showing
8 changed files
with
113 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
cc3cc5ccd2dfe840941dc6b5a245d289c2891158 | ||
18a26f06a720b48ed1d4ceed371f563dab825416 |
2 changes: 1 addition & 1 deletion
2
KeyboardTextFieldDemo/IQKeyboard.xcodeproj/project.pbxproj.REMOVED.git-id
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 |
---|---|---|
@@ -1 +1 @@ | ||
6af4568c358356e390946138c145b979447d7314 | ||
f9c34d1b01f3acd8f344e58c447b3369dd725e01 |
2 changes: 1 addition & 1 deletion
2
...xcworkspace/xcuserdata/iftekhar.xcuserdatad/UserInterfaceState.xcuserstate.REMOVED.git-id
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 |
---|---|---|
@@ -1 +1 @@ | ||
8a647445935c0a7373189364dbab8d5ce934c800 | ||
a88ff880e57a9f5e84bfc8da62abf5284bf80ac0 |
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
2 changes: 1 addition & 1 deletion
2
KeyboardTextFieldDemo/KeyboardTextFieldDemo/Base.lproj/Main.storyboard.REMOVED.git-id
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 |
---|---|---|
@@ -1 +1 @@ | ||
d60c0b13e68ca2179edd43fa9e1d344a1da129dd | ||
405469a002cd5f0ade289f5c1d0d37720558c310 |
13 changes: 13 additions & 0 deletions
13
KeyboardTextFieldDemo/KeyboardTextFieldDemo/BottomBlankSpaceViewController.h
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 @@ | ||
// | ||
// BottomBlankSpaceViewController.h | ||
// IQKeyboard | ||
// | ||
// Created by Iftekhar on 15/10/14. | ||
// Copyright (c) 2014 Iftekhar. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface BottomBlankSpaceViewController : UIViewController | ||
|
||
@end |
29 changes: 29 additions & 0 deletions
29
KeyboardTextFieldDemo/KeyboardTextFieldDemo/BottomBlankSpaceViewController.m
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,29 @@ | ||
// | ||
// BottomBlankSpaceViewController.m | ||
// IQKeyboard | ||
// | ||
// Created by Iftekhar on 15/10/14. | ||
// Copyright (c) 2014 Iftekhar. All rights reserved. | ||
// | ||
|
||
#import "BottomBlankSpaceViewController.h" | ||
#import "IQKeyboardManager.h" | ||
|
||
@implementation BottomBlankSpaceViewController | ||
{ | ||
IBOutlet UISwitch *switchPreventShowingBottomBlankSpace; | ||
} | ||
|
||
-(void)viewWillAppear:(BOOL)animated | ||
{ | ||
[super viewWillAppear:animated]; | ||
|
||
switchPreventShowingBottomBlankSpace.on = [[IQKeyboardManager sharedManager] preventShowingBottomBlankSpace]; | ||
} | ||
|
||
- (IBAction)preventSwitchAction:(UISwitch *)sender | ||
{ | ||
[[IQKeyboardManager sharedManager] setPreventShowingBottomBlankSpace:switchPreventShowingBottomBlankSpace.on]; | ||
} | ||
|
||
@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