This chapter is from the book
Workshop
Quiz
- The iDevice interface can rotate through three different orientations. True or false?
- How does an application communicate which rotation orientations it supports?
- What was the purpose of the
kDeg2Rad
constant that we defined in the final exercise?
Answers
- False. There are four primary interface orientations: landscape right, landscape left, portrait, and upside-down portrait.
- As long as the the
supportedInterfaceOrientations
method is implemented in the view controller, the application identifies which of the four orientations it will operate in. - We defined the
kDeg2Rad
constant to give us an easy way of converting degrees to radians for the Core Graphics C functionCGAffineTransformMakeRotation()
.