この行で:[self deviceInterfaceOrientationChanged:interfaceOrientation];
この警告が表示されます
Implicit conversion from enumeration type ' UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'?
私を助けてくれませんか?お願いします。ありがとう
コードは次のとおりです。
-(void) receivedRotate: (NSNotification*) 通知 { NSLog(@"receivedRotate"); UIDeviceOrientation interfaceOrientation = [[UIDevice currentDevice] 方向]; if(interfaceOrientation != UIDeviceOrientationUnknown) { [self deviceInterfaceOrientationChanged:interfaceOrientation]; } そうしないと { NSLog(@"不明なデバイスの向き"); } }