Xcode 7 Essentials - Second Edition by Brett Ohland & Jayant Varma

Xcode 7 Essentials - Second Edition by Brett Ohland & Jayant Varma

Author:Brett Ohland & Jayant Varma [Ohland, Brett]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2016-02-15T23:00:00+00:00


We've now associated our new view controller with our view.

Creating connections, outlets and actions

Now that we've associated our view with its controller, we have a screen. Let's add some functionality:

Add a label whose text changes at runtime

Add a button that will cause an alert dialogue box to appear when touched

Drag a label and a button and position or pin these two objects in a similar way to the first view. Change the label text (by double-clicking on the label) to THIS IS GOING TO CHANGE and the button text to show alert.

Close the document overview and Utility sidebars and click on the Assistant editor button in the editor area of the top toolbar.

You will now see the IB canvas on the left and a standard editor on the right, which contains the SecondViewController.swift file we just created:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.