Navigate with hierarchy

- [Instructor] While page navigation works…for some applications, it doesn't work for others.…For more tree-like structure,…there's hierarchical navigation.…This works like navigation controllers in iOS.…You can branch from one controller to another…in any order you wish.…Using our current three interface controllers,…let's explore the hierarchical controllers.…The first rule of hierarchical controllers…is they don't mix with page controllers.…You either have a hierarchy or a page-based navigation,…but not both.…To shut down the current page-based navigation…in our current project, we'll delete the segues.…

Stop the app, and close the console to give us some space.…Like page controllers, you can use a segue as your code.…So go ahead and click on these segues, first of all,…and delete the ones that are there.…And in the storyboard, select the Two button,…and once you do that, hit Control and drag to the two.…Release, and you get a little different menu.…One says Push and one says Modal, we're going to use Push.…

Resume Transcript Auto-Scroll

Author

Released

11/30/2017

There are over 2 million iOS apps available in the App Store, but less than 1% work on the Apple Watch. This underserved market is a great opportunity for Apple developers. Learn how to use your existing skills—plus the tools in Xcode 9 and watchOS 4—to create apps for Apple Watch. In this course, Steven Lipton shows you how to build a simple watchOS app, and then demonstrates the key differences from iOS, such as the watch picker, haptics, and the digital crown. Along the way, he shows how to create quick layouts with Interface Builder, navigate between controllers, enable dictation for text controls, and build tables. With these tips, you can quickly transition from iOS to watchOS app development and start entering the world of programming for wearable devices.

Topics include:

Principles of watchOS development

Adding buttons and labels to your app

Connecting objects to code

Testing a watchOS app

Laying out WatchKit UI objects

Adding navigation

Using Interface Library elements such as inputs, pickers, and media players