preferredInterfaceOrientationForPresentation must return a supported interface orientation

前端 未结 4 572
星月不相逢
星月不相逢 2020-11-29 07:11

This error doesn\'t make sense, as the preferred orientation UIInterfaceOrientationLandscapeRight is returned by the supported orientation

//iOS         


        
4条回答
  •  春和景丽
    2020-11-29 07:46

    from the documentation:

    -(NSUInteger)supportedInterfaceOrientations {
    
        return UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskLandscapeLeft; 
    }
    

    Note that the correct orientation is "Mask"! Did you try this?

提交回复
热议问题