Here’s a library called IHKeyboardAvoiding that works differently from previously mentioned libraries allowing you to automatically slide any view out of the way of the keyboard (not just text fields) submitted by Fraser Scott.
I mentioned a few libraries for solving the issue of text fields being covered by the keyboard, most recently IQKeyboardManager that provides an approach not requiring any code.
IHKeyboardAvoiding allows you to register a target view and when that keyboard intersects with the bottom of the target view it slides the view (and views contained within) upwards out-of-the-way of the view. This view can be any view, and use of a UIScrollView is not required. The library works with all orientations, auto layout and different keyboard setups (dock, undocked, normal, split).
Here’s an animation showing IHKeyboardAvoiding in action – notice the button and text fields sliding out-of-the-way:
You can find IHKeyboardAvoiding on Github here.
A nice library for solving the issue of views being covered by the keyboard.
- Open Source: Library Allowing For Automatic Synchronization Between Portrait And Landscape Views
- Open Source iPad Control Adds A Row Of Custom Keys For Easier Text Entry
- Open Source Control Allowing You To Add A Customizable Row Of Keys To The iOS Keyboard
- Open Source iOS Component For Creating Nice Customizable Slide-In Alerts
- Open Source iOS Component Allowing You To Easily Add Clickable Words Above The Keyboard
Original article: Open Source iOS Library Allowing You To Easily Slide Views Automatically Away From The Keyboard
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.