UIStoryboard

15,162 views

Published on

UIStoryboard is a valuable tool to iOS development. The intent of this presentation is to help you understand the basics of storyboarding. For more details on best practices, check out my blog here: http://robsprogramknowledge.blogspot.com/2012/01/uistoryboard-best-practices.html.

0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
15,162
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
50
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • UIStoryboard

    1. 1. UIStoryboardRobert Brown@robby_brown
    2. 2. What is a storyboard?A collection of views and the transitions between them.May contain all the views in an app or a subset.A necessity for rapid UI development.Great for prototyping.A picture is worth a thousand lines of code.
    3. 3. How do UIStoryboardscompare to XIBs?UIStoryboard: XIB: Interface Builder Interface Builder IBOutlets/IBActions IBOutlets/IBActions Segues Static cells Prototype cells
    4. 4. What is a segue?Not the cool, two-wheeled mobility device invented byDean Kamen.A transition from one view controller to another.Alternatively can present a popover.
    5. 5. -prepareForSegue:sender:Called on the source view controller before thetransition happens.The segue keeps track of the destination viewcontroller.Use this method to pass data on to the destinationview controller.
    6. 6. How do I get data back?DelegateBlockNotification centerObserverShared data
    7. 7. Types of seguesPushModal All standard modal transitions are supported.Popover (iPad only)Custom Any transition you want.
    8. 8. Static cells Used for table views that always look the same. No need for a UITableViewDataSource nor a UITableViewDelegate. May eliminate the need for a UITableViewController subclass.
    9. 9. Prototype cells Custom UITableViewCells associated with a UITableView. Makes it easy to create and use custom cells. Usually requires a custom cell class. May eliminate the need for a UITableViewDelegate.
    10. 10. Other advantagesKeeps similar views together.Gives a bird’s eye view of the app. Makes the view hierarchy easier to analyze.Saves a lot of coding.
    11. 11. Demo
    12. 12. Want to learn more?WWDC 2011 Session 309http://robsprogramknowledge.blogspot.com/

    ×