相关疑难解决方法(0)

Xcode:获取警告"从枚举类型UIDeviceOrientation隐式转换"

完全警告:

Implicit conversion from enumeration type 'UIInterfaceOrientation' to different enumeration type 'UIDeviceOrientation'
Run Code Online (Sandbox Code Playgroud)

让它上线:

[self orientationChanged:interfaceOrientation];
Run Code Online (Sandbox Code Playgroud)

这是方法:

- (void)orientationChanged:(UIInterfaceOrientation)interfaceOrientation 
Run Code Online (Sandbox Code Playgroud)

我真的不明白这个警告来自哪里.

xcode objective-c uiinterfaceorientation

24
推荐指数
1
解决办法
2万
查看次数