This post gives a quick intro to dealing with memory warnings in iOS. I have to admit, I’ve avoided this subject for a looong time while learning iOS. Â The first word says “these bugs will be incredibly annoying” and the second word says “you can just ignore these.” Â Or rather, that’s what the back of […]
Category Archives: gotchas
Handling rotations in UIViewController
July 8 10
In this post I’ll give a few general tips for handling device rotations at the UIViewController level.  These tips are for code using iOS (formerly known as iPhone OS) 3.0 or later, which includes all iPad code. 1.  In willAnimateRotationToInterfaceOrientation:duration:, size and position the view for the new orientation. This sounds obvious and easy, but there […]
Clash-happy method names
June 22 10
This post lists a few special-case method names that are somewhat likely to be used accidentally by you but can only be used correctly if you understand their built-in functions. Â Specifically: class, description, load, and hash. Why it’s tricky, by example Here’s an easy way to mess this up: start with a model object meant […]