Updated for latest iPhone and iPad screen sizes. Now supports both portrait and landscape orientation on iPad.