How to dismiss the keyboard in iOS

Channel:
Subscribers:
29,700
Published on ● Video Link: https://www.youtube.com/watch?v=5IwrzSqeVrc



Category:
Guide
Duration: 16:01
2,359 views
11


In this screencast I'll show you how to dismiss the iOS Keyboard, which is commonly brought up by a UITextField - but doesn't want to leave easy once summoned.

It's easy to overlook a step in this procedure, so I thought a screencast is in order. We're discussing two dismissal options here:

when the DONE button is pressed
and when users tap outside the textfield
The latter option isn't built into iOS, but users have come to rely on this behaviour. I'm using Xcode 5.1.1 and iOS 7.1 in this demo.

Happy hacking!







Tags:
IOS (Software)
Xcode
Objective-C
UITextField
How-to (Media Genre)