:[self deviceInterfaceOrientationChanged:interfaceOrientation];
警告:列挙型 'UIInterfaceOrientation'から異なる列挙型 'UIDeviceOrientation'への暗黙的な変換ですか?この行で
私はuが私を助けることができるこの警告
Implicit conversion from enumeration type ' UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'?
を入手してください?。 、UIDeviceOrientationとUIInterfaceOrientationは異なるタイプである
-(void) receivedRotate: (NSNotification*) notification { NSLog(@"receivedRotate"); UIDeviceOrientation interfaceOrientation = [[UIDevice currentDevice] orientation]; if(interfaceOrientation != UIDeviceOrientationUnknown) { [self deviceInterfaceOrientationChanged:interfaceOrientation]; } else { NSLog(@"Unknown device orientation"); } }
次の記事を参照してください。それは完全にそれに答える。 [StackOverflowのポスト] [1] [1]:http://stackoverflow.com/questions/7015709/xcode-getting-warning-implicit-coversion-from-enumeration-type-uideviceorienta – georryan