Posted on October 10, 2019
by Steven Lipton
Leave a Comment
If you’ve been working with View controllers for a while, you’ve probably dealt with prepareForSegue. In Xcode 11, there’s a new way to handle this that makes a little more sense: Segue actions. Let’s take a look at this feature. If you download the… Continue Reading “Segue Actions”
Category: iOS Development Weekly Tips, ios13, LinkedIn Learning / Lynda.com, Swift, Xcode 11Tags: actions, delegates, prepareforsegue, segue, segues in swift, swift, Xcode
Posted on June 30, 2016
by Steven Lipton
18 Comments
Modal views are one of the fundamental ways to present view controllers. Some early applications on the iPhone were completely modal views — some still do. Modals do not do their own housekeeping like navigation controllers or tab controllers, so they are not as… Continue Reading “Adding Modal Views and Popovers in Swift 3.0”
Category: iOS10, Swift, Swift Programming, TutorialTags: Auto Layout, identifier, modal, modal view, modal view in swift, mulitasking, popover, popover cgrect, popover in swift, popover inrect, segue, segue id, segues, Size classes, storyboard, storyboard ID, swift, Swift 3.0
Posted on June 27, 2016
by Steven Lipton
24 Comments
[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”
Category: Swift, Swift Programming, TutorialTags: Apple swift, delegate, delegates, prepareforsegue, segue, segues, segues in swift, swift, template, UIviewcontroller
Posted on May 29, 2015
by Steven Lipton
1 Comment
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
Posted on May 27, 2015
by Steven Lipton
2 Comments
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
Posted on April 12, 2015
by Steven Lipton
1 Comment
Like a lot of people I ordered my Apple watch on April 10th, and now have to wait until June for it to arrive. I’m excited about the possibilities of the watch. I’m excited about writing applications for the watch, and I’m excited about sharing… Continue Reading “Swift WatchKit Tutorials — A Basic Watch Kit App”
Category: GUI, ios8, Swift Programming, Tutorial, WatchKitTags: Apple Watch, button, date, date object, emoji, hello world, hierarchy, interface controller, label, model view controller, MVC, navigation, navigation controller, NSdateformatter, position, segue, swift, timer, Watchkit