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