I am new to IOS development. I am stuck at a place where I want to display something in a table view controller. In the first row I have this name called “All Fences” and for the rest of the rows below that, I have an array which contains all the other names.
Here’s what I am doing:
-(void) viewDidLoad{
[super viewDidLoad];
array=[[NSMutableArray alloc] init];
[array addObject:@"All Fences"];
[self fetchOtherArray];
}
-(void) fetchOtherArray{
// I have array2 here
}
Can you tell me how to get everything displayed .
Thanks
Provided that array has one string and that you have defined array2 in your header file, do this
Use this checking inside cellForRowAtIndexPath: