Open Source iOS Library Allowing You To Easily Slide Views Automatically Away From The Keyboard

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:

IHKeyboardAvoiding-Small

You can find IHKeyboardAvoiding on Github here.

A nice library for solving the issue of views being covered by the keyboard.

FacebookTwitterDiggStumbleUponGoogle Plus

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.

Leave a Reply

Your email address will not be published. Required fields are marked *