In this tutorial I am going to show you how to create an Editable UITextField inside a UIAlertController. I will do this by guiding you through the process of creating an UIAlertController with editable text fields for the user to enter a username and pasword and then display that in the console log. Create the app The first thing we need to do is create a new Single View Application: Enter these values into the dialogue that opens up: Prodact
Looking for an iOS Developer?
Submit your 30 day Job Listing for FREE
When the user taps in a text field, that text field becomes the first responder and automatically asks the system to display the associated keyboard.
When you are dealing with UITextFields one thing you need to handle is the showing and hiding of the keyboard. In this Objective-C Tutorial I will show you how to correctly manage the keyboard for UITextFields.