Tag: modal

Adding Modal Views and Popovers in Swift 3.0

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”

Using WatchOS2 Navigation in Swift

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”

Swift Watchkit: Working With Modal Views Part 3: Modal Page Views

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”

Swift WatchKit: Working with Modal Views Part 2: Presenting Programmatically

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”

Swift Watchkit: Working with Modal Views Part 1: Segue with a Delegate

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”

Swift Swift: Using Xibs and Delegates with Modal Views

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”

The Swift Swift Tutorials: Adding Modal Views and Popovers

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