As I feel that Autosizing becomes obsolete with the introduction of AutoLayout, I have configured the user interface with AutoLayout. The automatic constraints settings are almost perfect, I had to add a constraint to get the autosizing of the image correct.
But on topic: the gold challenge seems quite easy to solve with AutoLayout. Easier than expected! In willAnimateRotationToInterfaceOrientation:duration: the only thing I entered was checking if the orientation is set to landscape and change the center of the ‘gold’ button to centered at the right edge of the screen.
When I tested the result this works perfectly. But to my surprise when turning the orientation back to portrait the ‘gold’ button’s original position is magically restored, I didn’t add any code for this.
Can anybody explain me the magic behind this to me?