Moved framework directory at the top

This commit is contained in:
hackiftekhar
2014-03-20 15:58:43 +05:30
parent 4fe0edc467
commit 1502ff1207
22 changed files with 513 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

View File

@@ -0,0 +1,13 @@
"IQKeyboardManager enabled" = "IQKeyboardManager enabled";
"IQKeyboardManager disabled" = "IQKeyboardManager disabled";
"IQKeyboardManager already disabled" = "IQKeyboardManager already disabled";
"IQKeyboardManager already enabled" = "IQKeyboardManager already enabled";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager";
"Previous" = "Previous";
"Next" = "Next";

View File

@@ -0,0 +1,14 @@
"IQKeyboardManager enabled" = "IQKeyboardManager activado";
"IQKeyboardManager disabled" = "IQKeyboardManager discapacitados";
"IQKeyboardManager already disabled" = "IQKeyboardManager ya discapacitados";
"IQKeyboardManager already enabled" = "IQKeyboardManager ya habilitada";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "Debe establecer UIWindow.rootViewController en su AppDelegate trabajar con IQKeyboardManager";
"Previous" = "anterior";
"Next" = "Siguiente";

View File

@@ -0,0 +1 @@
Versions/Current/Headers

View File

@@ -0,0 +1 @@
Versions/Current/KeyboardManager

View File

@@ -0,0 +1 @@
Versions/Current/Resources

View File

@@ -0,0 +1,143 @@
//
// KeyboardManager.h
// https://github.com/hackiftekhar/IQKeyboardManager
// Copyright (c) 2013-14 Iftekhar Qurashi.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <Foundation/NSObject.h>
#import <CoreGraphics/CGBase.h>
#import "IQKeyboardManagerConstants.h"
/*!
@author Iftekhar Qurashi
@related hack.iftekhar@gmail.com
@class IQKeyboardManager
@abstract Keyboard TextField/TextView Manager
*/
@interface IQKeyboardManager : NSObject
/*!
@method sharedManager
@return Returns the default singleton instance.
*/
+ (IQKeyboardManager*)sharedManager;
/*!
@property keyboardDistanceFromTextField
@abstract To set keyboard distance from textField. can't be less than zero. Default is 10.0.
*/
@property(nonatomic, assign) CGFloat keyboardDistanceFromTextField;
/*!
@property enable
@abstract enable/disable the keyboard manager. Default is NO.
*/
@property(nonatomic, assign, getter = isEnabled) BOOL enable;
/*!
@property enableAutoToolbar
@abstract Automatic add the IQToolbar functionality. Default is YES.
*/
@property(nonatomic, assign, getter = isEnableAutoToolbar) BOOL enableAutoToolbar;
/*!
@property canAdjustTextView
@abstract Adjust textView's frame when it is too big in height. Default is NO.
*/
@property(nonatomic, assign) BOOL canAdjustTextView;
/*!
@property shouldResignOnTouchOutside
@abstract Resigns Keyboard on touching outside of UITextField/View. Default is NO.
*/
@property(nonatomic, assign) BOOL shouldResignOnTouchOutside;
/*!
@property shouldShowTextFieldPlaceholder
@abstract If YES, then it add the textField's placeholder text on IQToolbar. Default is YES.
*/
@property(nonatomic, assign) BOOL shouldShowTextFieldPlaceholder;
/*!
@property shouldPlayInputClicks
@abstract If YES, then it plays inputClick sound on next/previous/done click.
*/
@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);
/*!
@property shouldAdoptDefaultKeyboardAnimation
@abstract If YES, then uses keyboard default animation curve style to move view, otherwise uses UIViewAnimationOptionCurveEaseInOut animation style. Default is YES.
*/
@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;
/*!
@method init
@abstract Should create only one instance of class. Should not call init.
*/
- (id)init __attribute__((unavailable("init is not available in IQKeyboardManager, Use sharedManager")));
/*!
@method new
@abstract Should create only one instance of class. Should not call new.
*/
+ (id)new __attribute__((unavailable("new is not available in IQKeyboardManager, Use sharedManager")));
@end

View File

@@ -0,0 +1,121 @@
//
// IQKeyboardManagerConstants.h
// https://github.com/hackiftekhar/IQKeyboardManager
// Copyright (c) 2013-14 Iftekhar Qurashi.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#ifndef IQKeyboardManagerConstants_h
#define IQKeyboardManagerConstants_h
/* Set IQKEYBOARDMANAGER_DEBUG=1 in preprocessor macros under build settings to enable debugging.*/
#if !IQKEYBOARDMANAGER_DEBUG
#define NSLog(...)
#endif
/*!
@enum IQAutoToolbarManageBehaviour
@abstract AutoToolbar manage settings.
@const IQAutoToolbarBySubviews Creates Toolbar according to subview's hirarchy of Textfield's in view.
@const IQAutoToolbarByTag Creates Toolbar according to tag property of TextField's.
*/
typedef enum IQAutoToolbarManageBehaviour
{
IQAutoToolbarBySubviews,
IQAutoToolbarByTag,
}IQAutoToolbarManageBehaviour;
#define IQLocalizedString(key, comment) [[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"IQKeyboardManager" ofType:@"bundle"]] localizedStringForKey:(key) value:@"" table:@"IQKeyboardManager"]
#endif
/*
/---------------------------------------------------------------------------------------------------\
\---------------------------------------------------------------------------------------------------/
| iOS NSNotification Mechanism |
/---------------------------------------------------------------------------------------------------\
\---------------------------------------------------------------------------------------------------/
1) Begin Editing:- When TextField begin editing.
2) End Editing:- When TextField end editing.
3) Switch TextField:- When Keyboard Switch from a TextField to another TextField.
3) Orientation Change:- When Device Orientation Change.
----------------------------------------------------------------------------------------------------------------------------------------------
=============
UITextField
=============
Begin Editing Begin Editing
-------------------------------------------- ---------------------------------- ---------------------------------
|UITextFieldTextDidBeginEditingNotification| --------> | UIKeyboardWillShowNotification | --------> | UIKeyboardDidShowNotification |
-------------------------------------------- ---------------------------------- ---------------------------------
^ Switch TextField ^ Switch TextField
| |
| |
| Switch TextField | Orientation Change
| |
| |
| |
-------------------------------------------- ---------------------------------- ---------------------------------
| UITextFieldTextDidEndEditingNotification | <-------- | UIKeyboardWillHideNotification | --------> | UIKeyboardDidHideNotification |
-------------------------------------------- ---------------------------------- ---------------------------------
| End Editing ^
| |
|--------------------End Editing-------------------------------------------------------------|
----------------------------------------------------------------------------------------------------------------------------------------------
=============
UITextView
=============
|-------------------Switch TextView--------------------------------------------------------------|
| |------------------Begin Editing-------------------------------------------------------------| |
| | | |
v | Begin Editing Switch TextView v |
-------------------------------------------- ---------------------------------- ---------------------------------
| UITextViewTextDidBeginEditingNotification| <-------- | UIKeyboardWillShowNotification | --------> | UIKeyboardDidShowNotification |
-------------------------------------------- ---------------------------------- ---------------------------------
^
|
|------------------------Switch TextView--------|
| | Orientation Change
| |
| |
| |
-------------------------------------------- ---------------------------------- ---------------------------------
| UITextViewTextDidEndEditingNotification | <-------- | UIKeyboardWillHideNotification | | UIKeyboardDidHideNotification |
-------------------------------------------- ---------------------------------- ---------------------------------
| End Editing ^
| |
|--------------------End Editing-------------------------------------------------------------|
----------------------------------------------------------------------------------------------------------------------------------------------
/---------------------------------------------------------------------------------------------------\
\---------------------------------------------------------------------------------------------------/
*/

View File

@@ -0,0 +1,49 @@
//
// IQTextView.h
// https://github.com/hackiftekhar/IQKeyboardManager
// Copyright (c) 2013-14 Iftekhar Qurashi.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <UIKit/UITextView.h>
#import "IQKeyboardManagerConstants.h"
/*!
@author Iftekhar Qurashi
@related hack.iftekhar@gmail.com
@class IQTextView
@abstract UITextView with placeholder support
*/
NS_CLASS_AVAILABLE_IOS(7_0) @interface IQTextView : UITextView
/*!
@property placeholder
@abstract To set textView's placeholder text. Default is ni.
*/
@property(nonatomic,copy) NSString *placeholder;
@end

View File

@@ -0,0 +1,115 @@
//
// UIView+IQToolbar.h
// https://github.com/hackiftekhar/IQKeyboardManager
// Copyright (c) 2013-14 Iftekhar Qurashi.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#import <UIKit/UIView.h>
@class UIBarButtonItem;
/*!
@category UIView (Toolbar)
@since iOS (5.0 and later), ARC Required
@abstract UIView category methods to add IQToolbar on UIKeyboard.
*/
@interface UIView (Toolbar)
/*!
@method addDoneOnKeyboardWithTarget:action:
@abstract Helper functions to add Done button on keyboard.
@param target: Target object for selector. Usually 'self'.
@param action: Done button action name. Usually 'doneAction:(UIBarButtonItem*)item'.
@param shouldShowPlaceholder: A boolean to indicate whether to show textField placeholder on IQToolbar'.
@param titleText: text to show as title in IQToolbar'.
*/
- (void)addRightButtonOnKeyboardWithText:(NSString*)text target:(id)target action:(SEL)action;
- (void)addRightButtonOnKeyboardWithText:(NSString*)text target:(id)target action:(SEL)action shouldShowPlaceholder:(BOOL)showPlaceholder;
- (void)addRightButtonOnKeyboardWithText:(NSString*)text target:(id)target action:(SEL)action titleText:(NSString*)titleText;
- (void)addDoneOnKeyboardWithTarget:(id)target action:(SEL)action;
- (void)addDoneOnKeyboardWithTarget:(id)target action:(SEL)action shouldShowPlaceholder:(BOOL)showPlaceholder;
- (void)addDoneOnKeyboardWithTarget:(id)target action:(SEL)action titleText:(NSString*)titleText;
/*!
@method addCancelDoneOnKeyboardWithTarget:cancelAction:doneAction:
@abstract Helper function to add Cancel and Done button on keyboard.
@param target: Target object for selector. Usually 'self'.
@param cancelAction: Crevious button action name. Usually 'cancelAction:(UIBarButtonItem*)item'.
@param doneAction: Done button action name. Usually 'doneAction:(UIBarButtonItem*)item'.
@param shouldShowPlaceholder: A boolean to indicate whether to show textField placeholder on IQToolbar'.
@param titleText: text to show as title in IQToolbar'.
*/
- (void)addRightLeftOnKeyboardWithTarget:(id)target leftButtonTitle:(NSString*)leftTitle rightButtonTitle:(NSString*)rightTitle rightButtonAction:(SEL)rightAction leftButtonAction:(SEL)leftAction;
- (void)addRightLeftOnKeyboardWithTarget:(id)target leftButtonTitle:(NSString*)leftTitle rightButtonTitle:(NSString*)rightTitle rightButtonAction:(SEL)rightAction leftButtonAction:(SEL)leftAction shouldShowPlaceholder:(BOOL)showPlaceholder;
- (void)addRightLeftOnKeyboardWithTarget:(id)target leftButtonTitle:(NSString*)leftTitle rightButtonTitle:(NSString*)rightTitle rightButtonAction:(SEL)rightAction leftButtonAction:(SEL)leftAction titleText:(NSString*)titleText;
- (void)addCancelDoneOnKeyboardWithTarget:(id)target cancelAction:(SEL)cancelAction doneAction:(SEL)doneAction;
- (void)addCancelDoneOnKeyboardWithTarget:(id)target cancelAction:(SEL)cancelAction doneAction:(SEL)doneAction shouldShowPlaceholder:(BOOL)showPlaceholder;
- (void)addCancelDoneOnKeyboardWithTarget:(id)target cancelAction:(SEL)cancelAction doneAction:(SEL)doneAction titleText:(NSString*)titleText;
/*!
@method addPreviousNextDoneOnKeyboardWithTarget:previousAction:nextAction:doneAction
@abstract Helper function to add SegmentedNextPrevious and Done button on keyboard.
@param target: Target object for selector. Usually 'self'.
@param previousAction: Previous button action name. Usually 'previousAction:(IQSegmentedNextPrevious*)segmentedControl'.
@param nextAction: Next button action name. Usually 'nextAction:(IQSegmentedNextPrevious*)segmentedControl'.
@param doneAction: Done button action name. Usually 'doneAction:(UIBarButtonItem*)item'.
@param shouldShowPlaceholder: A boolean to indicate whether to show textField placeholder on IQToolbar'.
@param titleText: text to show as title in IQToolbar'.
*/
- (void)addPreviousNextDoneOnKeyboardWithTarget:(id)target previousAction:(SEL)previousAction nextAction:(SEL)nextAction doneAction:(SEL)doneAction;
- (void)addPreviousNextDoneOnKeyboardWithTarget:(id)target previousAction:(SEL)previousAction nextAction:(SEL)nextAction doneAction:(SEL)doneAction shouldShowPlaceholder:(BOOL)showPlaceholder;
- (void)addPreviousNextDoneOnKeyboardWithTarget:(id)target previousAction:(SEL)previousAction nextAction:(SEL)nextAction doneAction:(SEL)doneAction titleText:(NSString*)titleText;
/*!
@method setEnablePrevious:next:
@abstract Helper function to enable and disable previous next buttons.
@param isPreviousEnabled: BOOL to enable/disable previous button on keyboard.
@param isNextEnabled: BOOL to enable/disable next button on keyboard..
*/
- (void)setEnablePrevious:(BOOL)isPreviousEnabled next:(BOOL)isNextEnabled;
@end

View File

@@ -0,0 +1,13 @@
"IQKeyboardManager enabled" = "IQKeyboardManager enabled";
"IQKeyboardManager disabled" = "IQKeyboardManager disabled";
"IQKeyboardManager already disabled" = "IQKeyboardManager already disabled";
"IQKeyboardManager already enabled" = "IQKeyboardManager already enabled";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager";
"Previous" = "Previous";
"Next" = "Next";

View File

@@ -0,0 +1,14 @@
"IQKeyboardManager enabled" = "IQKeyboardManager activado";
"IQKeyboardManager disabled" = "IQKeyboardManager discapacitados";
"IQKeyboardManager already disabled" = "IQKeyboardManager ya discapacitados";
"IQKeyboardManager already enabled" = "IQKeyboardManager ya habilitada";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "Debe establecer UIWindow.rootViewController en su AppDelegate trabajar con IQKeyboardManager";
"Previous" = "anterior";
"Next" = "Siguiente";

View File

@@ -0,0 +1,13 @@
"IQKeyboardManager enabled" = "IQKeyboardManager enabled";
"IQKeyboardManager disabled" = "IQKeyboardManager disabled";
"IQKeyboardManager already disabled" = "IQKeyboardManager already disabled";
"IQKeyboardManager already enabled" = "IQKeyboardManager already enabled";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager";
"Previous" = "Previous";
"Next" = "Next";

View File

@@ -0,0 +1,14 @@
"IQKeyboardManager enabled" = "IQKeyboardManager activado";
"IQKeyboardManager disabled" = "IQKeyboardManager discapacitados";
"IQKeyboardManager already disabled" = "IQKeyboardManager ya discapacitados";
"IQKeyboardManager already enabled" = "IQKeyboardManager ya habilitada";
"You must set UIWindow.rootViewController in your AppDelegate to work with IQKeyboardManager" = "Debe establecer UIWindow.rootViewController en su AppDelegate trabajar con IQKeyboardManager";
"Previous" = "anterior";
"Next" = "Siguiente";