Latest Articles

Use the navigation at the bottom to see older articles

How to swap out a store file in Core Data

You can switch out the NSPersistentStore file in your running Core Data app by first adding your new store file, then removing the previous one. Once done you must execute your fetch request again so that the new data is available. Hot-swapping stores assumes both NSPersistentStore files are based on the same model. It’s like […]

How to convert a file path into an NSURL (and back)

To convert a file path into an NSURL: NSURL *localURL = [NSURL fileURLWithPath:localPath]; To create a local path from an NSURL: NSString *localPath = [localURL filePathURL]; NSURLs can also be created directly from an NSString: NSURL *yourURL = [[NSURL alloc]initWithString:@”http://wpguru.co.uk”]; // or NSURL *yourURL = [NSURL URLWithString:@”http://wpguru.co.uk”]; If you’re ever tried to pass a local […]

How to find your own apps in Xcode

Sometimes it can be difficult to find which of your own apps are installed on a device, especially when you’ve made so many over the years and also have installed countless ones from the app store. Here’s how to list “your apps” in Xcode 5: connect the device head over to Window – Organizer – […]

How to replace fonts in TwentyThirteen

I must admit that the new default font in TwentyFourteen looks damn sexy – but I’ve only just gotten used to the TwentyThirteen theme. Don’t get me wrong, if you’re after a magazine style theme then TwentyFourteen does a great job. Since I didn’t want to change themes again over at versluis.com, I thought perhaps … Read more

How to restore your iOS device with DFU / Recovery Mode

Sometimes iOS updates go awry. It may happen that the device hangs itself for good, refusing to activate or be recognised by iTunes. In that case, it’s time for a DFU reset, also known as Recovery Mode. Download an .ipsw file for your device from the Developer Centre (either a beta or the release version) […]