Hiding the iOS keyboard on blur

Thread is closed for posting
3 posts, 0 answers
  1. TJ
    TJ avatar
    58 posts
    Member since:
    Aug 2013

    Posted 09 Jan 2015 Link to this post

    Hey all,

    I have a series of forms with TextFields, and I want to hide the keyboard when the user taps outside of them. I think this is a pretty common thing to do in iOS apps, but I have no idea how to accomplish this in NativeScript. Can someone help me out?

  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 13 Jan 2015 Link to this post


    In fact, this is not so easy in iOS as it is in Android. We have still not thought of a way to do this from the control instance, i.e. to tell the TextField to hide the keyboard when the user taps outside. Here is one thing I found out, but it involves writing platform-specific code:


    I am currently trying to find a way to achieve this without forcing the developer to write platform-specific code. I will let you know when I invent something.

    Rossen Hristov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. tommy
    tommy avatar
    6 posts
    Member since:
    Jul 2012

    Posted 05 Mar 2015 Link to this post

    Yeah, I remember this being a white hot pain on iOS. Looking forward to an easier way to do this...
Back to Top