Object Life Cycle: UIViewController


When programming in iOS, it’s inevitable that you’ll need to subclass UIViewController. These subclasses contain all the logic that makes your apps look and behave as they should. It’s hard to set up a subclass without knowing which overridden methods will get called and when. To remedy this potential confusion, this post will take a look at the life cycle of a UIViewController.

Aural Breakpoints


Breakpoints are a time-tested debugging mechanism, but sometimes bringing your application to a halt will interrupt the very thing you’re debugging. This issue often comes up when creating UI elements that can be pinched, dragged, or rotated. Often, the best way to inspect these events is to hear audio feedback, allowing you to debug without pausing the app or taking your eyes off the screen. In this post, I’ll show how to use Xcode’s breakpoint features that utilize sound.

iOS View Controller Transitions (Part 3)


For the previous posts in this series, read here and here.

In earlier posts, I created some examples of iOS view controller transitions. Those examples were set up in a way that would allow for the simplest explanation of the concepts, but were not architected using the ‘best practices’ I would use when setting up a transition in my own projects. In this post, I’ll share some ideas that can improve reusability and stability of the code.

Getting Started with Custom UICollectionView Layouts


You already know how to set up a UITableView and UICollectionView. You’ve used UICollectionView’s flow layout to death, and now you’re ready to take the next step. Custom UICollectionView layouts are the most powerful tool for making your app’s data look exactly how it should. In this post, I’ll run through the steps needed to make the simplest possible layout.

iOS View Controller Transitions (Part 2)


For the first post in this series, read here.

In the previous post, we examined why animated transitions can be so important in iOS and looked at some simple examples. In this post, we will continue with more complex examples.

iOS View Controller Transitions (Part 1)


iOS has always had a heavy emphasis on animations, and for good reason. Animations can not only add some extra aesthetic appeal, they facilitate a functional understanding of an interface. Animations give users useful visual cues and context. In iOS, one of the most important applications of this concept is transitioning between ‘scenes’ of an application, or in programmer speak, switching from one UIViewController to another. In this post I will explain how to accomplish custom transitions between iOS scenes using Interface Builder and objective C.