identifierListController.nameArray = [[NSMutableArray alloc] initWithArray:nameArrayT copyItems:YES];
namearray is array of view controllers. I am reading values from webserver and putting into nameArrayT and then from nameArrayT to nameArray of the 2nd view which I select from the array.
I have tried:
-
identifierListController.nameArray = [[NSMutableArray alloc]initWithArray:nameArrayT copyItems:YES]; -
identifierListController.nameArray = [NSMutableArray arrayWithArray:nameArrayT]; -
[identifierListController.nameArray addObject:soapResults1]; -
[identifierListController.nameArray addObjectsFromArray:nameArrayT];
and all is not working for me, as when i am trying to display values of array by using NSLog() its shows null .
Do I have to create an NSString object and then copy that to the array?
I hope some one knows how to do this.
Thanks 🙂
Try first to allocate the array and then to copy objects: