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