This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 一括でラベルのフォントをヒラギノのサイズ14.0fに統一する | |
UILabel.appearance().font = UIFont(name: "HiraKakuProN-W3", size: 14.0) | |
UITextView.appearance().font = UIFont(name: "HiraKakuProN-W3", size: 14.0) | |
UITextField.appearance().font = UIFont(name: "HiraKakuProN-W3", size: 14.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationPortrait]; | |
[[UIDevice currentDevice] setValue:value forKey:@"orientation"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let value = UIInterfaceOrientation.LandscapeLeft.rawValue | |
UIDevice.currentDevice().setValue(value, forKey: "orientation") |