var frameColorInfo = [String:UIColor]()
frameColorInfo["frameColor"] = logs.frameColor
frameColorInfo["matColor"] = logs.matColor
// To store frame Color things
NSNotificationCenter.defaultCenter().postNotificationName("FrameColorThings", object:frameColorInfo)
let frameColor:[UIColor]
let matColor:[UIColor]
frameColor: [UIDeviceRGBColorSpace 0.92549 0.92549 0.92549 1]
matColor: [UIDeviceRGBColorSpace 0.92549 0.92549 0.92549 1]
ich den Fehler bekam:Farbe Property akzeptieren nicht in Swift
Cannot assign value of type
[UIColor]
to typeUIColor?
'logs.frameColor' wahrscheinlich ein Array ist und kein' UIColor'. Aktualisieren Sie Ihre Frage mit relevanten Informationen – Shubhank
@Subhank: Ich versuche, in Farbe in FrameColorInfo Array – kumar
zu speichern aktualisieren Sie Ihre Frage mit wie FrameColor in seiner Quelldatei erklärt wird – Shubhank