I have simple Dictionary which is defined like :
var dict : NSDictionary = [ 1 : "abc", 2 : "cde"]
But later I want to add some element into this dictionary which is 3 : "efg"
But I have no idea that how can I perform this action I searched a lot on internet but nothing helps me.
Can anybody tell me how can I append 3 : "efg"
into this existing dictionary?
SWIFT 3 - XCODE 8.1
So, your dictionary contains:
dictionary[1: Hola, 2: Hello, 3: Aloha]