How to unit test asynchronous methods in iOS using SenTestingKit

I’ve found the best way of unit testing asynchronous code in iOS using SenTestingKit (OCUnit) is by using a dispatch semaphore. Here’s an example of how to use it:

What’s a dispatch semaphore? I’ve added some links below with … Continued

Git Ignore File for Xcode 4

For iOS developers out there, if you’ve upgraded from Xcode 3 to Xcode 4, you’ll notice there are some new project and workspace configuration files being generated. Most of these shouldn’t tracked be in your version control system as they … Continued