Skip to content

Commit 2ea16a2

Browse files
committed
Fixed selector warning
1 parent 649134f commit 2ea16a2

File tree

3 files changed

+12
-29
lines changed

3 files changed

+12
-29
lines changed

KeyboardTextFieldDemo/IQKeyBoardManager/IQKeyboardManager.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ - (void)textFieldViewDidEndEditing:(NSNotification*)notification;
119119

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

122+
//To remove compiler warning
123+
- (void)barTintColor;
124+
122125
@end
123126

124127
@implementation IQKeyboardManager
@@ -155,6 +158,12 @@ @implementation IQKeyboardManager
155158
CGRect textFieldViewIntialFrame;
156159
}
157160

161+
//Remove compiler warning
162+
- (void)barTintColor
163+
{
164+
165+
}
166+
158167

159168
@synthesize enable = _enable;
160169
@synthesize enableAutoToolbar = _enableAutoToolbar;
@@ -234,9 +243,6 @@ -(void)dealloc
234243
}
235244

236245
#pragma mark - Property functions
237-
238-
239-
240246
-(void)setEnable:(BOOL)enable
241247
{
242248
// If not enabled, enable it.
@@ -287,20 +293,14 @@ -(void)setKeyboardDistanceFromTextField:(CGFloat)keyboardDistanceFromTextField
287293

288294
-(UIViewController *)rootViewController
289295
{
290-
if (_rootViewController == nil)
291-
{
292-
_rootViewController = [[self keyWindow] rootViewController];
293-
}
296+
if (_rootViewController == nil) _rootViewController = [[self keyWindow] rootViewController];
294297

295298
return _rootViewController;
296299
}
297300

298301
-(UIWindow *)keyWindow
299302
{
300-
if (_keyWindow == nil)
301-
{
302-
_keyWindow = [[UIApplication sharedApplication] keyWindow];
303-
}
303+
if (_keyWindow == nil) _keyWindow = [[UIApplication sharedApplication] keyWindow];
304304

305305
return _keyWindow;
306306
}

KeyboardTextFieldDemo/IQKeyboardManager.podspec

Lines changed: 0 additions & 17 deletions
This file was deleted.

KeyboardTextFieldDemo/KeyboardTextFieldDemo/KeyboardTextFieldDemo-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<key>CFBundleSignature</key>
2424
<string>????</string>
2525
<key>CFBundleVersion</key>
26-
<string>2.2</string>
26+
<string>2.3</string>
2727
<key>LSRequiresIPhoneOS</key>
2828
<true/>
2929
<key>UIRequiredDeviceCapabilities</key>

0 commit comments

Comments
 (0)