12 Jun 12
07 Jun 12
This is a very slick technique that I used to extend the functionality of UISwitch to track the NSIndexPath of UISwitch that was triggered.
Let’s say you are wanting to show customized text on the button that shows up on the left side of the navigation bar in an iOS app. In an unmodified Master-Details iPhone app, it is the button that returns you to the Master table view screen from within the Details view.
06 Jun 12
In this post I’ll show another method using Grand Central Dispatch.
Singleton classes are an important concept to understand because they exhibit an extremely useful design pattern.
self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@”bgs/fileinbundle.png”]];
03 Jun 12
importing code that basically converts raw data to Core Data entities
It may not be obvious but UIAlertView could be created and presented in one line of code. The reason is to avoid local variable to hold the view instance while it’s created, displayed and autoreleased.
29 May 12
If your family owns multiple Apple devices and you have several different Apple IDs among you, it can become overwhelming or confusing or just plain maddening to figure out where your content is. It doesn’t have to be that way: To manage your media and app purchases more effectively, you may want to consider having a single family iTunes account.
28 May 12
22 May 12
21 May 12
09 May 12
How to perform a proper, full DFU restore on an iPhone.
10 Apr 12
A Core Data fetch request with a combination of predicates and sort descriptors is a very flexible mechanism that covers many of the most common queries you might need for retrieving objects. However when you are more interested in querying for specific values such as the minimum or maximum value of an attribute an alternative approach using expressions can be easier and more efficient.
It’s a lot easier to get your data out of Core Data than the documentation will tell you. This simple 1-line fetch will work just as well as Apple’s suggested 10-line approach for most uses.
I use a category for NSManagedObjectContext that adds some nice functionality for creating fetches and executing them purely with code.