Common iOS code that I have found useful in my apps.