-
-
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.
- Loading branch information
1 parent
0b325ea
commit aa3bac7
Showing
8 changed files
with
217 additions
and
4 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
Binary file modified
BIN
-191 Bytes
(100%)
...deproj/project.xcworkspace/xcuserdata/iftekhar.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
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 |
Oops, something went wrong.