In Xcode I get a warning in the following line for FBConnect:
_orientation = [UIApplication sharedApplication].statusBarOrientation;
This is the full warning:
Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'
Any ideas how I can fix this?
Thanks!
Try changing
_orientation = [UIApplication sharedApplication].statusBarOrientation;
to
_orientation = (UIDeviceOrientation)[UIApplication sharedApplication].statusBarOrientation;
How about this?
UIDeviceOrientation _orientation = [[UIDevice currentDevice] orientation];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With