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 explanations. … Continued
Filament Group published a workaround for a bug in Safari for iOS that causes a user-zoomable page to scale beyond the width of the viewport when the device’s orientation changes from portrait to landscape. You can read about it in their … Continued
Adding settings for your iOS app so that they appear in the Settings app is simply done by creating a settings.bundle and defining the groups and settings controls in the Root.plist in the bundle. Sometimes it’s helpful to add hints … Continued
Creating text file attachments for email is a programming skill that’s simple but very useful to know. If you need a simple way to share or export data from your app this is as easy as they come. First, start … Continued
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