ios屏幕强制旋转

if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) {
            [[UIDevice currentDevice] performSelector:@selector(setOrientation:)
                                           withObject:(id)UIInterfaceOrientationPortrait];
        }

你可能感兴趣的:(ios屏幕强制旋转)