SWIFT | Convertire String in CGFloat
let _floatVal = CGFloat((stringValue as NSString).floatValue)
Appunti, stralci di programmazione e altro
let _floatVal = CGFloat((stringValue as NSString).floatValue)
Aprire un terminale e lanciare i seguenti comandi: (Carthage)ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” < /dev/null 2> /dev/nullbrew install carthage (CocoaPods)sudo gem install cocoapods Se l’installazione di cocoapods non va a…
let _label = UILabel() let size: CGFloat = _label.font.pointSize let name: String = _label.font.fontName
Aprire il terminale e spostarsi nella cartella di root del progetto e poi eseguire i seguenti passi una volta che la repository remota (nell’esempio è riportata una repository creata su…
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) }…
C:\Program files\VMware\VMware Workstation\vmware-vdiskmanager.exe -x <Dimensione in GB> <percorso di .vmdk> Es: vmware-vdiskmanager.exe -x 40GB C:\myVM\myVirtualDisk.vmdk
editare il file .vmx aggiungendo la seguente riga: bios.forceSetupOnce = “TRUE”
---SQL Server 2008--- IF OBJECT_ID(N'.', N'P') IS NOT NULL DROP PROCEDURE . GO ---SQL Server 2008 R2--- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('.') AND type in…
cd C:\Program Files\Oracle\VirtualBox VBoxManage.exe modifyvm <nome VM> –cpuidset 00000001 00306a9 00020800 80000201 178bfbff
cd C:\Program Files\Oracle\VirtualBox VirtualBox>VBoxManage.exe modifyhd “C:\Users\sorrentino\VirtualBox VMs\Mavericks\Mavericks.vdi” –resize 40000 N.B.: il valore 40000 indica 40 GB