Swift: Convert Unmanaged to String

So let’s say you have an Unmanaged<AnyObject> value that you know internally contains a value of type CFStringRef and you want to convert this to a value of type String in Swift. This… Continue reading

Creating string enumerations in Objective-C (The ultimate solution)

A while ago I wrote on my blog about a solution to one of the most common questions asked by Objective-C programmers which is “How can I create string enumerations?”. Well, the solution… Continue reading

Getting the most out of your WiFi dongle data plan (The definitive guide)

I am currently facing a situation where I need to carry out my work while I am connected to a WiFi dongle. I have spent about £20 for 6GB of data that can be… Continue reading

Giving private and group iOS development lessons

Hello internet. After writing many many books and developing iOS apps for 6+ years, I feel I am now ready to take on a new challenge. To start teaching iOS development to people… Continue reading

Debugging With LLDB and Xcode – Tutorial 1 – Populating Text Fields

In this video, I’ll demonstrate to you some of the baiscs of LLDB using the “expr” command to speed up your day to day development.

Hiding sensitive business logic in Objective-C

So you have some business logic in a class that you want to hide from the users of your class? Let’s say that you are working on a library project and you have… Continue reading

iOS 7 Programming Cookbook’s Source Code

As you know, my recent book is now published, titled “iOS 7 Programming Cookbook”. You can purchase it here: http://shop.oreilly.com/product/0636920031031.do All the source codes written for this book are now available on Github… Continue reading

Deprecating Properties, Methods and Enumerations in Objective-C – LLVM/Xcode Tips and Tricks

A lot of times when working in a team, you would write a class, or add an enumeration to an existing class or add a new property. Some times, you might need to… Continue reading

Making a Class Unavailable in Objective-C – LLVM/Xcode Tips and Tricks

So you have written an Objective-C class and you would like to mark it as unavailable so that others won’t be able to instantiate it? The solution is simple. In the header file… Continue reading

Using NSPredicate to Filter Through Arrays in Cocoa and Cocoa Touch

In this video, I will teach you a really cool way of filtering through an NSArray, using predicates.