For many years, iOS applications didn’t get the same kind of unit testing attention that other applications do. Part of this was due to the fact that Apple’s tools didn’t make it easy to set up and run unit tests, and part of it was “it’s all UI, and UI is hard to unit test.” Fortunately, Apple has fixed the first, and the second isn’t really true if you structure your code properly. In this series of posts, I’m going to include some tips and tricks I recommend for doing unit testing in iOS apps.