1
keithellis 2015 年 3 月 26 日
NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationXXXX];
[[UIDevice currentDevice] setValue:value forKey:@"orientation"]; |
2
keithellis 2015 年 3 月 26 日
swift
let value = UIInterfaceOrientation.XXX UIDevice.currentDevice().setValue(value, forKey: "orientation") |
3
tsinghan OP @keithellis 这个可以给单独某个viewcontroller设置?
|