Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7: Supporting Screen Rotations

7

Supporting Screen Rotations

WHAT YOU WILL LEARN IN THIS CHAPTER

  • How to support the four different types of screen orientation
  • Events that are fired when a device rotates
  • How to reposition the views in a View window when the orientation of a device changes
  • How to change the screen rotation dynamically during runtime
  • How to fix the orientation of your application before it is loaded

The Hello World! application in Chapter 2 showed you how your iPhone application supports viewing in either the portrait or landscape mode. This chapter dives deeper into the topic of screen orientation. In particular, it demonstrates how to manage the orientation of your application when the device is rotated. You will also learn how to reposition your views when the device is rotated so that your application can take advantage of the change in screen dimensions.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint