Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
UIStoryboardRobert Brown@robby_brown
What is a storyboard?A collection of views and the transitions between them.May contain all the views in an app or a subse...
How do UIStoryboardscompare to XIBs?UIStoryboard:           XIB:  Interface Builder       Interface Builder  IBOutlets/IBA...
What is a segue?Not the cool, two-wheeled mobility device invented byDean Kamen.A transition from one view controller to a...
-prepareForSegue:sender:Called on the source view controller before thetransition happens.The segue keeps track of the des...
How do I get data back?DelegateBlockNotification centerObserverShared data
Types of seguesPushModal  All standard modal transitions are supported.Popover (iPad only)Custom  Any transition you want.
Static cells Used for table views that always look the same. No need for a UITableViewDataSource nor a UITableViewDelegate...
Prototype cells Custom UITableViewCells associated with a UITableView. Makes it easy to create and use custom cells. Usual...
Other advantagesKeeps similar views together.Gives a bird’s eye view of the app.  Makes the view hierarchy easier to analy...
Demo
Want to learn more?WWDC 2011 Session 309http://robsprogramknowledge.blogspot.com/
Upcoming SlideShare
Loading in …5
×

UIStoryboard

17,236 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.

  • Sex in your area is here: ❶❶❶ http://bit.ly/39mQKz3 ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ❤❤❤ http://bit.ly/39mQKz3 ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

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/

×