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

2. iOS App Patterns: Hello, Renee! > Connect the datasource just like actions a...

Connect the datasource just like actions and outlets

Now that the datasource protocol is implemented, the data is in place and it’s just a matter of linking it to the picker. Hop back into Interface Builder to make that connection:

image with no caption
  1. Right-click on the Picker in the view to bring up the picker connections box.

  2. Notice that the File’s Owner for this view is our InstaEmailViewController, which realizes the datasource and delegate protocols we need. You need to connect the picker’s dataSource to our controller, or the File’s Owner. To do that, click inside the circle next to the dataSource, and drag over the to File’s Owner.


  

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