Support for ios 8 rotation methods.