在Xcode中,我在FBConnect的下面一行中得到一个警告:
_orientation = [UIApplication sharedApplication].statusBarOrientation;
这是完整的警告:
Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'你知道我该怎么解决这个问题吗?
谢谢!
发布于 2011-06-27 09:19:00
试着改变
_orientation = [UIApplication sharedApplication].statusBarOrientation;至
_orientation = (UIDeviceOrientation)[UIApplication sharedApplication].statusBarOrientation;发布于 2013-10-01 14:11:48
这个怎么样?
UIDeviceOrientation _orientation = [[UIDevice currentDevice] orientation];https://stackoverflow.com/questions/6320327
复制相似问题