: [self deviceInterfaceOrientationChanged:interfaceOrientation];
경고 : 열거 형 'UIInterfaceOrientation'에서 다른 열거 형 'UIDeviceOrientation'으로의 암시 적 변환? 이 라인에서
나는 유 좀 도와 줄래이 경고
Implicit conversion from enumeration type ' UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'?
을 보내 주시기 바랍니다?. U를
여기 코드 것 감사합니다 :
-(void) receivedRotate: (NSNotification*) notification { NSLog(@"receivedRotate"); UIDeviceOrientation interfaceOrientation = [[UIDevice currentDevice] orientation]; if(interfaceOrientation != UIDeviceOrientationUnknown) { [self deviceInterfaceOrientationChanged:interfaceOrientation]; } else { NSLog(@"Unknown device orientation"); } }
다음 게시물을 참조하십시오. 그것은 완벽하게 대답합니다. [유래 포스트] [1] [1] : http://stackoverflow.com/questions/7015709/xcode-getting-warning-implicit-coversion-from-enumeration-type-uideviceorienta – georryan