iOS engineer who likes clean, simple designs and sans-serif.

ios objective c


Week 2 Day 1 – Custom or Designated Initializer

Here's the Objective-C code that I like to start with in order to write custom or designated initializers. - (instancetype)init { self = [super init]; if (self) { // Custom ...
Read More

Week 1 Day 5 – Object Oriented Programming in iOS

Some random nuggets that I learned today (or maybe these things just clicked if I covered them before): - Class methods (+) are typically used for initialization. Normally, you'll typically ...
Read More

Week 1 Day 4 – NSMutableDictionary > NSMutableArray

Today I learned that I should use NSMutableDictionary instead of NSMutableArray for fast indexing/searching. Never thought about it that way before -- I always used to only consider it when ...
Read More

Week 1 Day 2 – Github vs. project.pbxproj and storyboards

Today, I learned about the hell that can be git merging .pbxproj and .storyboard files in iOS. I got to experience first hand the importance of good clear commits. Some ...
Read More

Week 1 Day 1 – Saving to Address Book

We did a lot of Git + Github today, which I have used before. We also built a simple "Profile app" (to introduce ourselves) using a Tab Bar View Controller. ...
Read More

Using RGB Colors in Objective-C

A quick helper macro to use RGB colors for iOS: #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] [[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0x067AB5)];
Read More

iOS Facebook Login [Cheatsheet]

Below are some notes for getting Facebook Login to work on iOS 7. Create Facebook App - Log into Facebook Developers at https://developers.facebook.com/apps and click "Create New App". - Type ...
Read More

CoreData [Example]

Below are my notes for getting CoreData to work on iOS 7. Create new project - Use Menu => New Project => iOS => Application => Empty Application. - Make ...
Read More

Parse [Cheatsheet]

This is updated as of Parse v1.2.17, Ruby v2.0.0, and RubyGems v2.2.0. Installing Ruby and Rubygems (and HomeBrew). ruby -v brew install ruby gem -v sudo gem update --system - ...
Read More

UIAlertView Plain Text Input (Example)

An example of UIAlertView to input data v7 1) Set up IBAction for button - (IBAction)addAlbumBarButtonItemPressed:(UIBarButtonItem *)sender { UIAlertView *newAlbumAlertView = [[UIAlertView alloc] initWithTitle:@"Enter New Album Name" message:nil delegate:self cancelButtonTitle:@"Cancel" ...
Read More