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 March 4, 2016
by Steven Lipton
Leave a Comment
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”
Category: GUI, ios8, iOS9, Swift, Swift Programming, Tutorial, WatchKitTags: Apple Watch, awakeWithContext, contextForsegueWithIdentifier, modal, navigation, pages, presentControllerWithName, presentControllerWithNames, programmatic, pushControllerWithName, WatchOS, WatchOS2, WatchOS2.2, WatchOS2.3
Posted on June 15, 2015
by Steven Lipton
Leave a Comment
Apple’s documentation for WatchKit is quite clear, even when it is lying. The documentation states you can have hierarchical navigation or page navigation but not both. Here’s is where it lies: you can have a page-based navigation as part of a hierarchical navigation scheme.… Continue Reading “Swift Watchkit: Working With Modal Views Part 3: Modal Page Views”
Category: ios8, Swift, Tutorial, WatchKitTags: Apple Watch, Buttons, glance, groups, layout, modal, modal controller, modal interface, modal view, Notification, Page, page controller, page interface, page view, Programming Apple watch, Story Board, storyboard, swift, Watchkit
Posted on June 10, 2015
by Steven Lipton
3 Comments
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
Posted on June 3, 2015
by Steven Lipton
2 Comments
Modal views on iPhones and ipads are used for input of information that requires attention. One of the on the Apple Watch is a modal view. You cannot mix a page-based interface with a hierarchical (i.e. navigation) interface as we learned in previous lessons.… Continue Reading “Swift Watchkit: Working with Modal Views Part 1: Segue with a Delegate”
Category: ios8, Swift, Swift Programming, Swift Swift, Tutorial, WatchKitTags: Apple Watch, Buttons, glance, groups, layout, modal, modal delegates in swift, Notification, Programming Apple watch, Story Board, storyboard, swift, Watchkit
Posted on September 4, 2014
by Steven Lipton
9 Comments
In the last post, I showed how to create modal views and popovers on an iPad . That lesson was missing two critical things for modal views, which we will cover in this one. We will learn how to add a .xib file to… Continue Reading “Swift Swift: Using Xibs and Delegates with Modal Views”
Posted on August 30, 2014
by Steven Lipton
23 Comments
[Updated to Swift 2.0/iOS9 9/29/15] There are times your user interface needs to grab attention for a control. This is what modal views and popovers are. Modal views are one of the oldest of the view controllers. Some early applications on the iPhone were… Continue Reading “The Swift Swift Tutorials: Adding Modal Views and Popovers”
Category: Swift Programming, Swift SwiftTags: Auto Layout, modal, modal view, modal view in swift, mulitasking, popover, popover cgrect, popover in swift, popover inrect, Size classes, swift