我已經OBJ-C代碼的setObject相當於斯威夫特
[dictionary setObject:[[notification object] objectForKey:@"key"] forKey:@"anotherKey"];
我怎麼能翻譯這迅速?通知NSNotification對象
我試圖
dictionary.setValue(notification.valueForKey("key"), forKey: "anotherKey")
,但應用程序崩潰,錯誤(對不起,圖片,粘貼不工作)
'[通知對象]'沒有被翻譯:'notification.object'。所以'... notification.object.valueForKey(「key」)'? – Larme