Handling rotation across iOS 7 and 8 correctly