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 …
(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 …
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 …
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 …
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:)]){ …
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) …
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 …
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 …
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 …