I have an array set up like:
NSMutableArray *array = [[NSArray alloc] initWithObjects: @"Item 1", @"Item 2", @"Item 3", @"Item 4", @"Item 5", nil];
And I would like to access the contents of the array to display them in an NSString but I am unsure what to use, for example:
[NSString stringWithFormat:@"%c", [objectAtIndex:0]];
[NSString stringWithFormat:@"%c", [objectAtIndex:1]];
But my array is declared in - (void)viewDidLoad and I need to access them in - (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath - How would I access them and display them in an NSString?
arrayan instance var. See stackoverflow.com/questions/6851963/…