在这一行:[self deviceInterfaceOrientationChanged:interfaceOrientation];
我收到此警告
Implicit conversion from enumeration type ' UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'?
你能帮我吗?拜托。感谢你
这是代码:
-(void) receivedRotate: (NSNotification*) 通知
{
NSLog(@"receivedRotate");
UIDeviceOrientation interfaceOrientation = [[UIDevice currentDevice] 方向];
如果(接口方向!= UIDeviceOrientationUnknown){
[self deviceInterfaceOrientationChanged:interfaceOrientation];
} 别的 {
NSLog(@"未知设备方向");
}
}