[swift] NSDictionary/NSMutableDictionary要素追加方法
目次
NSDictionary/NSMutableDictionary要素追加方法
NSDictionary
let dict = NSDictionary() dict.setValue("Name", forKey: str) // Success
NSMutableDictionary
let dict = NSMutableDictionary() dict.setValue("Name", forKey: str) // Success