Skip to content

Instantly share code, notes, and snippets.

@daniellevass
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniellevass/23cd857423b2fc3f62ee to your computer and use it in GitHub Desktop.
Save daniellevass/23cd857423b2fc3f62ee to your computer and use it in GitHub Desktop.
Paged Apple Watch Apps

Paged Apple Watch Apps

##Introduction

Last time we had a look at how to create a hierarchical app using tables and push segues. This time we're going to take a brief look at the alternate navigation by creating a paged app.

##Interface Builder

We can actually achieve a paged app with just the interface builder. The first thing to do is drag out a single Interface Controller and set the background to a red colour. Next we need to move the Main Entry point from the hierarchical app to point to this new Interface Controller.

Next you can to drag out a couple mre Interface Controllers and set their backgrounds all to different colours. To hook them together by ctrl click on the first Interface Controller and drag to the second Interface Controller, and it should set up add a "next page" segue.

Imgur

After stringing all the screens together, you should be able to run your app again and swipe between several colours.

Imgur

##Conclusion

All my project code is available on GitHub at https://github.com/calvium/WatchKit-Tutorial if you got stuck or want to see what I did. Next we're going to look at how to use a context menu to display a modal dialog complete with a static map!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment