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

Unwrapping Optional Counts in Swift 3

We are VERY busy converting our Swift 2.2 code to Swift 3.0. I've been running into this problem a lot and thought I would share a quick tip (as of ...
Read More

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

Message sent to deallocated instance (Swift)

(Written as of XCode 6.1.1, iOS8) Man, these cryptic Swift errors can be frustrating! This week, I kept getting this deallocation error and could not figure out what was going ...
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 removeAllChildrenWithCleanup:YES]; [self stopAllActions]; [super ...
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:)]){ NSLog(@"%@", family); for (NSString* name in ...
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