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.

by bbohling 13 years ago
Tags:

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.

by bbohling 13 years ago
Tags:

06 Jun 12


Singleton classes are an important concept to understand because they exhibit an extremely useful design pattern.

by bbohling 13 years ago

self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@”bgs/fileinbundle.png”]];

by bbohling 13 years ago

03 Jun 12

importing code that basically converts raw data to Core Data entities

by bbohling 13 years ago

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.

by bbohling 13 years ago

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.

by bbohling 13 years ago

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.

by bbohling 13 years ago

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.

by bbohling 13 years ago

I use a category for NSManagedObjectContext that adds some nice functionality for creating fetches and executing them purely with code.

by bbohling 13 years ago