Skip to content

Commit

Permalink
ReadMe updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Feb 25, 2014
1 parent a12a6cd commit 7b74ff8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions KeyboardTextFieldDemo/KeyboardTextFieldDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
//Giving permission to modify TextView's frame
[[IQKeyboardManager sharedManager] setCanAdjustTextView:YES];

//Show TextField placeholder texts on autoToolbar
[[IQKeyboardManager sharedManager] setShouldShowTextFieldPlaceholder:YES];

return YES;
Expand Down
34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@ Often while developing an app, We ran into an issues where the iPhone UIKeyboard
![image](./KeyboardTextFieldDemo/Screenshot/IQKeyboardManagerScreenshot.png)


Usage
Installation
==========================

Cocoapod
---
IQKeyboardManager is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:

pod 'IQKeyboardManager', '~>2.5.0'

Framework:-
---
Link your project against `KeyboardManager.framework` found in "KeyboardManagerFramework" directory. Drag and drop the resource bundle `IQKeyboardManager.bundle` found in same directory. add `-ObjC` flag in `other linker flag`. In your `appDelegate.m` import `#import <KeyboardManager/KeyboardManager.h>`. Write just one line of code.

Source Code:-
---
Just drag and drop `IQKeyboardManager` class in your project. In your `appDelegate.m` write just one line of code. This will handle all UITextField/UITextView covering problem.
Just drag and drop `IQKeyBoardManager` directory from demo project to your project. In your `appDelegate.m` import `#import "IQKeyboardManager.h"`. Write just one line of code.

## Usage
``` objc
//AppDelegate.m

Expand All @@ -31,7 +46,7 @@ Just drag and drop `IQKeyboardManager` class in your project. In your `appDelega
//(Optional)Enable autoToolbar behaviour. If It is set to NO. You have to manually create UIToolbar for keyboard.
//[[IQKeyboardManager sharedManager] setEnableAutoToolbar:YES];

//(Optional)Setting toolbar behaviour to IQAutoToolbarBySubviews to manage previous/next according to UITextField's hirarchy in it's SuperView. Set it to IQAutoToolbarByTag to manage previous/next according to UITextField's tag property in increasing order.
//(Optional)Setting toolbar behaviour to IQAutoToolbarBySubviews to manage previous/next according to UITextField's hierarchy in it's SuperView. Set it to IQAutoToolbarByTag to manage previous/next according to UITextField's tag property in increasing order.
//[[IQKeyboardManager sharedManager] setToolbarManageBehaviour:IQAutoToolbarBySubviews];

//(Optional)Resign textField if touched outside of UITextField/UITextView.
Expand All @@ -40,6 +55,9 @@ Just drag and drop `IQKeyboardManager` class in your project. In your `appDelega
//(Optional)Giving permission to modify TextView's frame
//[[IQKeyboardManager sharedManager] setCanAdjustTextView:YES];

//(Optional)Show TextField placeholder texts on autoToolbar
[[IQKeyboardManager sharedManager] setShouldShowTextFieldPlaceholder:YES];

[self.window makeKeyAndVisible];
return YES;
}
Expand All @@ -49,16 +67,6 @@ Just drag and drop `IQKeyboardManager` class in your project. In your `appDelega
```
## Installation
IQKeyboardManager is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:
pod 'IQKeyboardManager', '~>2.5.0'
## Feature:-
Expand Down

0 comments on commit 7b74ff8

Please sign in to comment.