Fixes rotation on iOS 7 sample.