[Add] APSDKMediationMintegral 0.0.19
[CocoaPods.git] / Specs / d / a / 9 / TXViewKeyboardResizer / 1.0.2 / TXViewKeyboardResizer.podspec.json
blob20c8d5320c88855169056f7b5b560f4d7981cdb3
2   "name": "TXViewKeyboardResizer",
3   "version": "1.0.2",
4   "summary": "UIView+KeyboardResizer category to allow the target view to resize itself according to UIKeyboardView size",
5   "description": "\n# TXViewKeyboardResizer\n\nIt automatically resizes you UIView when keyboard appears.\n\nIt can be used with any kind of UIViews.\n\nIf your view extends a UIScrollView, you need to adjust your UIScrollView.contentSize.\n\n## Usage\n\nFirst, choose the UIView that is going to be resized when keyboards appears.\n\n![Controller](https://github.com/rtoshiro/TXViewKeyboardResizer/blob/master/readme/01.png)\n\nThen, you need to check your Autolayout configuration or Autoresize values.\n\nHere, i am going to use Autoresize as it is a little bit easier in that case.\n\n![Autoresize](https://github.com/rtoshiro/TXViewKeyboardResizer/blob/master/readme/02.png)\n\nWith autoresize configured, when UIView resizes, our UITextField is positioned automaticaly.\n\nNow we can call startKeyboardResizerObserver(WithDelegate:) inside our UIViewController:\n\n```\n- (void)viewDidLoad\n{\n[super viewDidLoad];\n\n[self.scrollView startKeyboardResizerObserverWithDelegate:self];\n}\n```\nWe must remember stop observing when we are done with keyboard:\n\n```\n- (void)viewWillDisappear:(BOOL)animated\n{\n[super viewWillDisappear:animated];\n\n[self.scrollView stopKeyboardResizerObserver];\n}\n```\n\n## Delegate\n\nAnd then, you can adjust your view per need:\n\n```\n- (void)viewWillResize:(UIView *)view;\n- (void)viewDidResize:(UIView *)view;\n- (void)viewDidTap:(UIView *)view;\n```\n\nWe can close the keyboard, for example:\n\n```\n- (void)viewDidTap:(UIView *)view\n{\nfor (UIView *subview in self.scrollView.subviews)\n{\nif ([subview isMemberOfClass:[UITextField class]])\n[((UITextField *)subview) resignFirstResponder];\n}\n}\n```\n\n![Resize](https://github.com/rtoshiro/TXViewKeyboardResizer/blob/master/readme/01.gif)\n\n\n\n## Requirements\n\niOS 6.+\n\n## Installation\n\nTXViewKeyboardResizer is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"TXViewKeyboardResizer\"\n```\n\n## License\n\nTXViewKeyboardResizer is available under the MIT license. See the LICENSE file for more info.\n\n",
6   "homepage": "https://github.com/rtoshiro/TXViewKeyboardResizer",
7   "license": "MIT",
8   "authors": {
9     "rtoshiro": "rtoshiro@gmail.com"
10   },
11   "source": {
12     "git": "https://github.com/rtoshiro/TXViewKeyboardResizer.git",
13     "tag": "1.0.2"
14   },
15   "platforms": {
16     "ios": "6.0"
17   },
18   "requires_arc": true,
19   "source_files": "Pod/Classes/**/*",
20   "resource_bundles": {
21     "TXViewKeyboardResizer": [
22       "Pod/Assets/*.png"
23     ]
24   }