Hello everyone. I am new to swift and declare a dictionary in my application as follows:
var imageDict : Dictionary<String, String> = [:]
and I want to set the values ββfor this dictionary as follows:
imageDict.setValue(NSStringFromCGPoint(frame), forKey: NSString.stringWithString("/(tagValue)"));
But I got an error:
Dictonary <String, String> does not have a member named 'setValue'
This question is related to my previous question and may explain why I cannot set a value for this dictionary and can someone tell me another way to do this?
Thanks in advance.
swift xcode6
Richie rich
source share