Ch. 21: Size Transitions Result in Layout Corruption

Once one finishes implementing Ch. 21: Custom Presentation Controller & Device Orientation Animations, a device rotation results in the layout being totally funged. It would be nice to have guidance on how to address such issues.

Steps to recreate:

  1. Complete the implementation challenge for Ch. 21.
  2. Choose an iPhone simulator.
  3. Run.
  4. Observe the presentation of the herb list at the bottom.
  5. Rotate left. The herb list looks fine.
  6. Rotate right.
    • Expected: The herb list items are the same size as before the rotations.
    • Actual: The herb list items are now slightly bigger.
  7. Tap on an herb. The herb detail presentation looks fine.
  8. Rotate left.
    • Expected: The herb detail presentation is presented in landscape mode.
    • Actual: The herb detail presentation is gone and the Beginner Cook and text is shown too narrow.
  9. Rotate right.
    • Things have really gotten munged!

I’m not sure I’ll have time to figure out the proper fixes.