in Swift: Difference between Array VS NSArray VS [AnyObject]
Array is a struct, therefore it is a value type in Swift. NSArray is an immutable Objective C class, therefore it is a reference type in Swift and it is bridged to Array<AnyObject>. NSMutableArray is the mutable subclass of NSArray. var arr : NSMutableArray = [“Pencil”, “Eraser”, “Notebook”] var barr = [“Pencil”, “Eraser”, “Notebook”] func … Read more