09 Feb 13
This tutorial is the place to learn the Objective-C programming language. It’s designed to serve as both a concise quick-reference and a comprehensive introduction for newcomers to the language. A familiarity with basic programming concepts like variables, functions, and objects is recommended, but not strictly required.
27 Aug 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.
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.
22 Mar 12
27 Jan 12
17 Jan 12
15 Dec 11
06 Dec 11
in this guide I would like to introduce the most important nuggets of information to designing 100% perfect layouts.
02 Dec 11
iOS development class at Stanford