switch(_outputImageOrientation)
{
case UIInterfaceOrientationPortrait:outputRotation = kGPUImageRotateRightFlipVertical; break;
case UIInterfaceOrientationPortraitUpsideDown:outputRotation = kGPUImageRotate180; break;
case UIInterfaceOrientationLandscapeLeft:outputRotation = kGPUImageFlipHorizonal; break;
case UIInterfaceOrientationLandscapeRight:outputRotation = kGPUImageFlipVertical; break;
这是我的代码,我收到以下错误: 枚举值“UIInterfaceOrientationUnknown”未在开关中处理
有人能帮忙吗?
最佳答案
只需在您的开关中添加 default:break;
语句即可。
关于ios - 枚举值 'UIInterfaceOrientationUnknown' 未在开关中处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26212980/