Wednesday, September 25, 2013

Add the User Interface Elements

You add user interface (UI) elements by dragging them from the object library to a view on the canvas. After the UI elements are in a view, you can move and resize them as appropriate.
bullet
To add the UI elements to the view and lay them out appropriately
After you add the text field, label, and button UI elements and make the recommended layout changes, your project should look similar to this:
../Art/after_layout.jpg
There are a few other changes you can make to the text field so that it behaves as users expect. First, because users will be entering their names, you can ensure that iOS suggests capitalization for each word they type. Second, you can make sure that the keyboard associated with the text field is configured for entering names (rather than numbers, for example), and that the keyboard displays a Done button.
This is the principle behind these changes: Because you know at design time what type of information a text field will contain, you can configure it so that its runtime appearance and behavior are well suited to the user’s task. You make all of these configuration changes in the Attributes inspector.

No comments:

Post a Comment