Chapter 21 Rotation issue


Running the final code of the example of this chapter I’ve found an issue that I’m not able to fix. If you tap one herb, the detail view controller presents itself correctly but if you rotate the device while you are in the detail view controller, when you dismiss this detail view controller the original one has a wrong frame

Any ideas of how to fix this?

Thank you very much