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