I have to create a dynamic NSArray, that is, I don\'t know the size of the array or what elements the array is going to have. The elements need to be added to the array dynamica
Convert your NSArray to NSMutableArray, and then you can add values dynamically:
NSMutableArray *mutableStringArray = [stringArray mutableCopy]; [mutableStringArray addObject:@"theNewElement"];