Recognize iOS devices and react to different orientations.