Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. Objective-C for iOS: Email needs variety > Customize your UITextField

Customize your UITextField

In InstaEmailViewController.xib, select Mike’s custom field and then open up the Attributes Inspector in the Utilities pane. You can specify an initial value of the text in the field (Text); text that the field shows in grey if there’s no other text to display (Placeholder); left, center, or right Alignment; different Borders, etc. For now, you don’t need to add anything for field, so leave these alone.

Change the label on the return key

Changing the name of the button in the keyboard (so it’s “done” instead of the “return”) is another option in the inspector. The big thing that changing the label on the button brings to the table is that it clearly communicates to the user what to do to make the keyboard go away.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial