SWIFT | Disabilitare dark mode
Aggiungere ad info.plist: <key>UIUserInterfaceStyle</key><string>Light</string>
Appunti, stralci di programmazione e altro
Aggiungere ad info.plist: <key>UIUserInterfaceStyle</key><string>Light</string>
let _floatVal = CGFloat((stringValue as NSString).floatValue)
let _label = UILabel() let size: CGFloat = _label.font.pointSize let name: String = _label.font.fontName
override func viewDidLoad() { super.viewDidLoad() let _btBack = UIButton(type: .Custom) _btBack.addTarget(self, action: "returnToRoot:", forControlEvents: UIControlEvents.TouchUpInside) _btBack.setImage(UIImage(named: "arrow-left")?.imageWithRenderingMode(.AlwaysTemplate), forState: .Normal) _btBack.imageView?.tintColor = UIColor.whiteColor() _btBack.sizeToFit() self.navigationItem.leftBarButtonItem = UIBarButtonItem(customView: _btBack) self.navigationController?.setNavigationBarHidden(false, animated:true) }…