In this line: [self deviceInterfaceOrientationChanged:interfaceOrientation];
I get this warning
Implicit conversion from enumeration type ' UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'?
Can u help me ?please. thank u
Here's the code:
-(void) receivedRotate: (NSNotification*) notification { NSLog(@"receivedRotate"); UIDeviceOrientation interfaceOrientation = [[UIDevice currentDevice] orientation]; if(interfaceOrientation != UIDeviceOrientationUnknown) { [self deviceInterfaceOrientationChanged:interfaceOrientation]; } else { NSLog(@"Unknown device orientation"); } }