Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The UITextField can tell our ViewController when the Done button was pressed on the keyboard; we just need to tell it what message to send. We can do this with Interface Builder. You’ll need to declare an action in the .h file and implement it in the .m file:
Add the IBAction to InstaEmailViewController.h.
Just like we did with the “Send Email” button, go back into Xcode and add this:
Add the method implementation in InstaEmailViewController.m.
Now that we have an action that will be called when the Done button is pressed, we just need to ask the textField to resign its first responder status and it will hide the keyboard.
Almost there, we just need to wire it up...