Home > Articles > Programming > Mac and iOS Programming

  • Print
  • + Share This
This chapter is from the book

Workshop

Quiz

  1. The iDevice interface can rotate through three different orientations. True or false?
  2. How does an application communicate which rotation orientations it supports?
  3. What was the purpose of the kDeg2Rad constant that we defined in the final exercise?

Answers

  1. False. There are four primary interface orientations: landscape right, landscape left, portrait, and upside-down portrait.
  2. 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.
  3. We defined the kDeg2Rad constant to give us an easy way of converting degrees to radians for the Core Graphics C function CGAffineTransformMakeRotation().
  • + Share This
  • 🔖 Save To Your Account