January 2012
Beginner
655 pages
16h 35m
English
This chapter explained how changes in screen orientation are handled by the various methods in the View Controller class. Proper handling of screen orientations will make your application more useable and improve the user experience.
EXERCISES
Answers to the exercises can be found in Appendix D.
WHAT YOU LEARNED IN THIS CHAPTER
| TOPIC | KEY CONCEPTS |
| Handling device rotations | Implement the willRotateToInterfaceOrientation: and willAnimateRotationToInterfaceOrientation: methods. |
| Four orientations supported | UIInterfaceOrientationPortraitUIInterfaceOrientationLandscapeLeftUIInterfaceOrientationLandscapeRightUIInterfaceOrientationPortraitUpsideDown |
| Events fired when device is rotated | willAnimateFirstHalfOfRotationToInterfaceOrientation: |
| Properties for changing the position of a view | Use the frame property for changing the positioning and size of a view.
Use the center property for changing the positioning of a view. |