Xcode: Getting warning “implicit conversion from enumeration type UIDeviceOrientation”
问题 Full warning: Implicit conversion from enumeration type \'UIInterfaceOrientation\' to different enumeration type \'UIDeviceOrientation\' Getting it on the line: [self orientationChanged:interfaceOrientation]; This is the method: - (void)orientationChanged:(UIInterfaceOrientation)interfaceOrientation I can\'t really understand where this warning is coming from. 回答1: UIDeviceOrientation refers to the physical orientation of the device whereas UIInterfaceOrientation refers to the orientation of