Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Tab bar controllers

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Wird geladen in …3
×

Hier ansehen

1 von 12 Anzeige

Weitere Verwandte Inhalte

Anzeige

Aktuellste (20)

Tab bar controllers

  1. 1. Unit 3—Lesson 7: Tab Bar Controllers
  2. 2. UITabBarController A specialized view controller that manages a radio-style selection interface A tab bar is displayed at the bottom of the view
  3. 3. Flat Navigation hierarchy
  4. 4. Configuration UITabBarController Tab Bar Controller viewControllers World Clock Controller Alarm Controller Bedtime Controller Stopwatch Controller Timer Controller
  5. 5. Add a tab bar controller Using a storyboard Drag in a UITabBarController from the object library
  6. 6. Add tabs Drag a new view controller object onto the canvas To create a segue, control-drag from the UITabBarController to the 
 view controller Select "view controllers" under Relationship Segue
  7. 7. UITabBarItem
  8. 8. Programmatic customization tabBarItem.badgeValue = "!" tabBarItem.badgeValue = nil
  9. 9. More ! = Better Even more tab items More view controller: • Appears when needed • Can’t be customized If possible, plan app to avoid More
  10. 10. Tab Bar Controllers Unit 3—Lesson 7 Learn how to use tab bar controllers to organize different kinds of information or different modes of operation.
  11. 11. Lab: About Me Unit 3—Lesson 7 Create an app that displays distinct types of information about yourself in separate tabs.
  12. 12. © 2017 Apple Inc. This work is licensed by Apple Inc. under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.

×