It’s rare to have a one controller application, even in something as small as the Apple watch. Multiple View Controllers, or Interface Controllers as they are called in WatchKit, need ways to move between controllers. WatchOS2 has a simplified version of the iOS navigation… Continue Reading “Using WatchOS2 Navigation in Swift”
In the first part in this series we implemented a modal interface in WatchKit with a segue. In this part we’ll present the modal programmatically and once again set up a delegate and context for moving data between controllers. Open the project from the… Continue Reading “Swift WatchKit: Working with Modal Views Part 2: Presenting Programmatically”
Category: ios8, Swift, Tutorial, WatchKitTags: Apple Watch, awakeWithContext, Buttons, context, delegate, dismissController, glance, groups, layout, modal, Notification, presentController, programmatic presentation, Programming Apple watch, Story Board, storyboard, swift, Watchkit, watchkit delegate, WatchOS
In our lessons setting up navigation controllers on the Apple Watch, we’ve learned how to set up the storyboard, how to use push controllers programmatically and introduced sending data to another controller and back using contexts and delegates. In this lesson, we’ll pass data… Continue Reading “Swift WatchKit: Introducing Navigation to the Apple Watch(Part 4: Dismissals and Segues)”
Category: GUI, ios8, Swift Programming, Tutorial, Uncategorized, WatchKitTags: Apple Watch, awakeWithContext, button, contextForsegueWithIdentifier, popController, popToRootController, popViewControllerAnimated, Programming Apple watch, pushControllerWithName, segue, Story Board, storyboard, swift, UIviewcontroller, view controllers, Watchkit, WKInterfaceController
In our last lesson we set up navigation in the Storyboard and programmatically. We left off with passing data from one view controller to another using the context parameter like this: We made a context variable which we passed to the destination controller. We… Continue Reading “Swift WatchKit: Introducing Navigation to the Apple Watch(Part 3: Using Delegates and Contexts)”
Category: GUI, ios8, Swift, Swift Swift, Tutorial, WatchKitTags: Apple Watch, awakeWithContext, Buttons, context, delegate, glance, groups, layout, Notification, prepareforsegue, Programming Apple watch, pushControllerWithName, segue, Story Board, storyboard, swift, UIviewcontroller, view controllers, viewDidAppear, viewDidLoad, viewWillAppear, Watchkit, willActivate, WKInterfaceController
If you are making your own stuff, doing your own work and trying to sell it in the market, most advice isn't enough. You want it to work. You want to sell your works to those who most are touched by them. This newsletter is for you. I am one of those people like you, creative, independent and maybe a little bit crazy to the outside world. I'll talk about writing good apps for Apple platforms, the tools and API's to get there. Along the way I will show you how to become you best creative self. I will show you how to build and create, and make some money at it too.
Get exclusive content, new post notifications, tips and more in A Slice of App Pie.
This site may include links that provide monetary compensation to the owners of this site.