Modified to use auto-layout to work on iPhone 4 and iPhone 5.