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

ios objective c


UITableView dequeueReusableCellWithIndentifier

Someone asked me about this the other day, so I thought I’d write a quick blog post about how to use dequeueReusableCellWithIndentifier vs. dequeueReusableCellWithIndentifier:withReuseIdentifier. dequeueReusableCellWithIndentifier In the past, when using …

Read More

Re-position UIBarButtonItem

If you’ve ever tried to re-position a UIBarButtonItem, you’ll know that it’s kind of a pain. This was the best way I could think of to do it. First, create …

Read More

Debugging Object is Dealloc’ed in Cocos2d

This is a good way to check to make sure your objects are dealloc’ed with Cocos2d. – (void)dealloc{     NSLog(@"Object has been deallocated"); } – (void)onExit{     [self …

Read More

Get Font Family Names

Here’s some really useful code to sort and list all the known font family names for iOS.     for (NSString* family in [[UIFont familyNames] sortedArrayUsingSelector:@selector(localizedCaseInsensitiveCompare:)]){         …

Read More

All Your Exception Breakpoints Are Belong To Us

I came across this awesome XCode tip and could not keep it to myself. 1) Create an exception breakpoint. 2) Right click on “All Exceptions” and click “Edit Breakpoint”. 3) …

Read More

Property Cheatsheet in iOS

Even though I can’t count how many times I’ve used properties, I thought I would make a cheatsheet to cover the basic definitions. This article was the best one I …

Read More

Cookies with AFNetworking in iOS7

Recently, I had to hit a stateful internal API and needed to store an user authentication cookie. I couldn’t figure out how to do this in the AFNetworking documentation, but …

Read More

Some quick math behind Parse’s 1 million requests

Currently, Parse is free for the first million requests per month. Parse rocks and it’ll be a while before I hit a million. Wow this is awesome right? Hmm, not …

Read More

Creating PFObjects With Parse

Here’s a basic example of how to model objects in Parse with PFObjects. Long term though, it may be better to use the API instead in case you decide you …

Read More

CocoaPod Favorites – Shimmer + MZTimerLabel

Here are two CocoaPods I really like for their simplicity, ease of use and impact: 1) Facebook’s Shimmer Shimmer is an easy way to add a shimmering effect to any …

Read More