Tag: UIviewcontroller

Bug Workaround: Swift Playgrounds for iPad

While doing some work on more material for the site in Swift playgrounds, I ran into a serious bug in the Swift Playgrounds for iPad. I made a short video to tell you’re about it, and I’ve included an extended transcript afterwards. Hello Folks… Continue Reading “Bug Workaround: Swift Playgrounds for iPad”

Using Segues and Delegates for Navigation Controllers in Swift 4.0

[Updated 2/13/2018 to Xcode 9 / Swift 4.0] It should be one of the easiest things we do, and yet for many it is the most confusing. Getting data from one view controller to another as you switch views never seems easy. Segues might… Continue Reading “Using Segues and Delegates for Navigation Controllers in Swift 4.0”

Swift WatchKit: Introducing Navigation to the Apple Watch(Part 4: Dismissals and Segues)

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)”

Swift WatchKit: Introducing Navigation to the Apple Watch(Part 3: Using Delegates and Contexts)

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)”

The Swift Swift Tutorial: Using Segues and Delegates in Navigation Controllers (Part 1 — The Template)

[Updating to Swift 2.0  SJL 9/17/15] Click here for the Swift 3.0 version of this post It should be one of the easiest things we do, and yet for many it is the most confusing. Getting data from one view controller to another as… Continue Reading “The Swift Swift Tutorial: Using Segues and Delegates in Navigation Controllers (Part 1 — The Template)”