Category Archives for UIViewController

Inline UIDatePicker In Swift With UIViewController

This tutorial walks through implementing two inline UIDatePicker controls for selecting date/time values, and is written in Swift. There are examples out there that demonstrate an inline UIDatePicker.

Continue reading

UINavigationController Inside UITabBarController With Storyboard

A very common user interface pattern is to use a UITabBarController as the root view controller for an app, and then embed UINavigationControllers in tabs that require navigation. In iOS apps, this is

Continue reading

Copy Xib To Storyboard

This post describes how you can migrate (or copy) a Xib file into a Storyboard and retain all the components and constraints. In a previous post, I demonstrated a strategy and demo app to migrate an

Continue reading

UITextField Drop Down List In Swift

This post provides a working example of a UITextField Drop Down List that allows a user to type in a value, or select from a list. It is somewhat similar to a feature you see in apps such as Uber, and also

Continue reading

Objective-C To Swift Migration – Illustrated With A Demo App

Migrating an existing Objective-C project to Swift by gradually introducing Swift classes is a common strategy for legacy iOS apps, where it is typically not feasible to rewrite the entire app to take

Continue reading

UITableViewCell Subclass In Swift For Dynamic Cell Reuse

This tutorial demonstrates implementation in Swift of Dynamic Prototype cells for a UITableView using a custom UITableViewCell subclass. Update 3 Aug 2017: Demo app is updated for Swift 3. Before we get

Continue reading

When Should You Override viewDidLayoutSubviews?

An Examination of When to Use viewDidLoad, viewWillAppear, and viewDidLayoutSubviews Overview A common question is when to override and add code in viewDidLayoutSubviews, versus viewDidLoad and viewW...

Continue reading