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
  • DownloadDownload
  • PrintPrint

Workshop

Quiz

1. What event do you use to detect a button tap?

2. What purpose do the @property/@synthesize directives serve?

3. Which Apple project template creates a simple view/view controller application?

4. What is the relationship between storyboards, scenes, views, and view controllers?

Answers

1. The Touch Up Inside event is most commonly used to trigger actions based on a button press.

2. The @property and @synthesize directives define a property that corresponds to an instance variable. The property gives us a means of accessing our instance variables without having to manipulate them directly. In addition, a property that is declared without a corresponding instance variable automatically generates that instance variable for you; we (and Apple) take advantage of this feature throughout the book.


  

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