Skip to content

Commit

Permalink
Framework updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Mar 21, 2014
1 parent 34ad7a0 commit 456b166
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

#import "IQKeyboardManagerConstants.h"




/*!
@author Iftekhar Qurashi
Expand All @@ -37,6 +40,11 @@
*/
@interface IQKeyboardManager : NSObject




//UIKeyboard handling

/*!
@method sharedManager
Expand All @@ -45,18 +53,23 @@
+ (IQKeyboardManager*)sharedManager;

/*!
@property keyboardDistanceFromTextField
@property enable
@abstract To set keyboard distance from textField. can't be less than zero. Default is 10.0.
@abstract enable/disable the keyboard manager. Default is YES(Enabled when class loads in `+(void)load` method).
*/
@property(nonatomic, assign) CGFloat keyboardDistanceFromTextField;
@property(nonatomic, assign, getter = isEnabled) BOOL enable;

/*!
@property enable
@abstract enable/disable the keyboard manager. Default is NO.
@property keyboardDistanceFromTextField
@abstract To set keyboard distance from textField. can't be less than zero. Default is 10.0.
*/
@property(nonatomic, assign, getter = isEnabled) BOOL enable;
@property(nonatomic, assign) CGFloat keyboardDistanceFromTextField;




//IQToolbar handling

/*!
@property enableAutoToolbar
Expand All @@ -65,13 +78,44 @@
*/
@property(nonatomic, assign, getter = isEnableAutoToolbar) BOOL enableAutoToolbar;

/*!
@property toolbarManageStyle
@abstract AutoToolbar managing behaviour. Default is IQAutoToolbarBySubviews.
*/
@property(nonatomic, assign) IQAutoToolbarManageBehaviour toolbarManageBehaviour;

/*!
@property shouldToolbarUsesTextFieldTintColor
@abstract If YES, then uses textField's tintColor property for IQToolbar, otherwise tint color is black. Default is NO.
*/
@property(nonatomic, assign) BOOL shouldToolbarUsesTextFieldTintColor NS_AVAILABLE_IOS(7_0);

/*!
@property shouldShowTextFieldPlaceholder
@abstract If YES, then it add the textField's placeholder text on IQToolbar. Default is YES.
*/
@property(nonatomic, assign) BOOL shouldShowTextFieldPlaceholder;




//TextView handling

/*!
@property canAdjustTextView
@abstract Adjust textView's frame when it is too big in height. Default is NO.
*/
@property(nonatomic, assign) BOOL canAdjustTextView;




//Resign handling

/*!
@property shouldResignOnTouchOutside
Expand All @@ -80,11 +124,16 @@
@property(nonatomic, assign) BOOL shouldResignOnTouchOutside;

/*!
@property shouldShowTextFieldPlaceholder
@abstract If YES, then it add the textField's placeholder text on IQToolbar. Default is YES.
@method resignFirstResponder
@abstract Resigns currently first responder field.
*/
@property(nonatomic, assign) BOOL shouldShowTextFieldPlaceholder;
- (void)resignFirstResponder;




//Sound handling

/*!
@property shouldPlayInputClicks
Expand All @@ -93,33 +142,24 @@
*/
@property(nonatomic, assign) BOOL shouldPlayInputClicks;

/*!
@property toolbarUsesCurrentWindowTintColor
@abstract If YES, then uses textField's tintColor property for IQToolbar, otherwise tint color is black. Default is NO.
*/
@property(nonatomic, assign) BOOL shouldToolbarUsesTextFieldTintColor NS_AVAILABLE_IOS(7_0);



//Animation handling

/*!
@property shouldAdoptDefaultKeyboardAnimation
@property shouldAdoptDefaultKeyboardAnimation
@abstract If YES, then uses keyboard default animation curve style to move view, otherwise uses UIViewAnimationOptionCurveEaseInOut animation style. Default is YES.
@abstract If YES, then uses keyboard default animation curve style to move view, otherwise uses UIViewAnimationOptionCurveEaseInOut animation style. Default is YES.
@discussion Sometimes strange animations may be produced if uses default curve style animation in iOS 7 and changing the textFields very frequently.
*/
@property(nonatomic, assign) BOOL shouldAdoptDefaultKeyboardAnimation;

/*!
@property toolbarManageStyle

@abstract AutoToolbar managing behaviour. Default is IQAutoToolbarBySubviews.
*/
@property(nonatomic, assign) IQAutoToolbarManageBehaviour toolbarManageBehaviour;

/*!
@method resignFirstResponder
@abstract Resigns currently first responder field.
*/
- (void)resignFirstResponder;

//@final. Must not be used for subclassing.

/*!
@method init
Expand All @@ -136,6 +176,8 @@
+ (id)new __attribute__((unavailable("new is not available in IQKeyboardManager, Use sharedManager")));




@end


Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@

"IQKeyboardManager enabled" = "IQKeyboardManager activado";

"IQKeyboardManager disabled" = "IQKeyboardManager discapacitados";
"IQKeyboardManager disabled" = "IQKeyboardManager desactivado";

"IQKeyboardManager already disabled" = "IQKeyboardManager ya discapacitados";
"IQKeyboardManager already disabled" = "IQKeyboardManager ya está desactivado";

"IQKeyboardManager already enabled" = "IQKeyboardManager ya habilitada";
"IQKeyboardManager already enabled" = "IQKeyboardManager ya está activado";

"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "Debe establecer UIWindow.rootViewController en su AppDelegate trabajar con IQKeyboardManager";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "Debe establecer UIWindow.rootViewController en su AppDelegate para trabajar con IQKeyboardManager";

"Previous" = "anterior";
"Previous" = "Anterior";

"Next" = "Siguiente";

0 comments on commit 456b166

Please sign in to comment.