How to add string objects to NSMutableArray
I think you are missing to allocate the memory for array. So try this NSMutableArray *randomSelection = [[NSMutableArray alloc] init]; [randomSelection addObject:@”string1″]; NSString *test = [randomSelection objectAtIndex:0]; NSLog(test);