2015-03-05 9 views

risposta

34

Prendi l'UIColor dal CGColor utilizzando UIColor (cgColor: ...):

let uiColor = UIColor(cgColor: cgColor) 

poi assegnarlo come un colore di sfondo al pulsante.

+6

Questo è stato aggiornato a 'UIColor (cgColor:)' in Swift 3 – gokeji

Problemi correlati