Skip to content

Commit

Permalink
Fixed selector warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Jan 24, 2014
1 parent 649134f commit 2ea16a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
22 changes: 11 additions & 11 deletions KeyboardTextFieldDemo/IQKeyBoardManager/IQKeyboardManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ - (void)textFieldViewDidEndEditing:(NSNotification*)notification;

- (void)tapRecognized:(UITapGestureRecognizer*)gesture;

//To remove compiler warning
- (void)barTintColor;

@end

@implementation IQKeyboardManager
Expand Down Expand Up @@ -155,6 +158,12 @@ @implementation IQKeyboardManager
CGRect textFieldViewIntialFrame;
}

//Remove compiler warning
- (void)barTintColor
{

}


@synthesize enable = _enable;
@synthesize enableAutoToolbar = _enableAutoToolbar;
Expand Down Expand Up @@ -234,9 +243,6 @@ -(void)dealloc
}

#pragma mark - Property functions



-(void)setEnable:(BOOL)enable
{
// If not enabled, enable it.
Expand Down Expand Up @@ -287,20 +293,14 @@ -(void)setKeyboardDistanceFromTextField:(CGFloat)keyboardDistanceFromTextField

-(UIViewController *)rootViewController
{
if (_rootViewController == nil)
{
_rootViewController = [[self keyWindow] rootViewController];
}
if (_rootViewController == nil) _rootViewController = [[self keyWindow] rootViewController];

return _rootViewController;
}

-(UIWindow *)keyWindow
{
if (_keyWindow == nil)
{
_keyWindow = [[UIApplication sharedApplication] keyWindow];
}
if (_keyWindow == nil) _keyWindow = [[UIApplication sharedApplication] keyWindow];

return _keyWindow;
}
Expand Down
17 changes: 0 additions & 17 deletions KeyboardTextFieldDemo/IQKeyboardManager.podspec

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.2</string>
<string>2.3</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
Expand Down

0 comments on commit 2ea16a2

Please sign in to comment.