iOS Archives

These posts are syndicated from my iOS Dev Diary over at pinkstone.co.uk.

The format is slightly different with more code snippets and less explanations. I had originally designed it as a notebook in iOS Development – now you can follow along if you’re interested.

How to reverse a BOOL in Objective C

Sometimes you need the opposite of a BOOL. This is actually easier than I had expected – because the opposite of YES is !YES and the opposite of NO is !NO. More examples here: http://stackoverflow.com/questions/6829573/reversing-a-bool

How to detect changes in iCloud Key/Value Data

Now that we can read from and write to iCloud, how will we know when another device may have written new data? We’ll do this by adding an observer and listening to a special message iCloud transmits every time new data is available. The message has the catchy title NSUbiquitousKeyValueStoreDidChangeExternallyNotification. Here’s how we can setup […]

How to use iCloud to store Key/Value Data

Using iCloud as Key/Value storage is almost identical to NSUserDefaults, except it populates to iCloud in the background and can be read from any device on the same account. What I find much harder than the code is how to make this work in Xcode. Here’s what we need: an App ID that has iCloud […]

How to use “iOS 6 Legacy Look” in Xcode 5

I’ve previously written about how to retain iOS 6 Legacy Look when deploying your apps to iOS 7. This can be achieved by simply using Xcode 4.6.3 to compile and submit your apps to the App Store. The good news is that there is a way to do this with Xcode 5 too, and therefore […]

How to fix “ibtool failed with exit code 255”

I got this error message recently on a project that worked fine when I tried last (WordPress for iOS). The error didn’t make any sense, and no matter what I tried the app wouldn’t compile anymore, always stopping with the following error message: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255 I can imagine Xcode gets confused […]