November 2016
Intermediate to advanced
480 pages
14h 42m
English
Creating views and laying out your user interface is not the only purpose of Interface Builder. You can also use Interface Builder to wire up connections between your views and your Swift code.
When you run your application and Main.storyboard is loaded, the Cocoa runtime will create an instance of your ViewController class, configure its views, and set up any outlets and actions you have configured. For VocalTextEdit, you want the speakButtonClicked(_:) method to be called on the instance of ViewController that is managing the current document. Control-drag from the Speak button to the icon representing the ViewController, as in Figure 26.19.
Read now
Unlock full access