Custom Header and Footer Views for UITableViews
I want to put this post into the category of, “Holy crap! I didn’t know I could do this in Xcode!” For years I’ve dealt with creating custom header views for UITableViews purely in code and only recently found a much easier way to create them using storyboards and Interface Builder. I know, many developers […]
Sometimes Being Lazy is Good
I have seen code like this in some projects: [myArray removeAllObjects]; for (Thing *thing in anotherArray) { [myArray addObject:thing]; } [self.myTable reloadData]; Now, you may look at this and think it’s is a fine way of coding and you’d be right for the most part. The coder is simply removing all the objects in a […]
NSUserDefaults—some pretty good practices
“How do I store user preferences in my iOS app?” is a pretty common question most developers face at some point in their app development career. Perhaps and app can display information in different, user-selectable units, perhaps the user should be able to enable or disable certain features or perhaps the developer wants to keep […]