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.
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.
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.
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.
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 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.
Auto layout is awesome. It helps you create iOS interfaces that were not previously possible with springs and struts. However, becoming proficient at auto layout can require that you internalize some new concepts. In this post, I will attempt to cover those new ideas as concisely as I can.