I have an NSMutableArray named randomSelection:
NSMutableArray *randomSelection;
I am then trying to add strings to this array if certain c
Swift :
var randomSelection: [AnyObject] = [AnyObject]() randomSelection.append("string1") let test: String = randomSelection[0] as! String print(test)
OR
let array : NSMutableArray = [] array.addObject("test String") print(array)