hello,
I have a array:
NSArray *myArray = [NSArray arrayWithObjects
"Red", @"John", @"20", @"Student", @"Blue", @"Jane", @"24", @"Singer", @"Green", @"Kath", @"25", @"Teacher", nil];
I would like to product a result as NSString like this:
1 | Color: Red | Name: John | Age: 20 | Occupation: Student
2 | Color: Blue | Name: Jane | Age: 24 | Occupation: Singer
3 | Color: Green | Name: Kath | Age: 35 | Occupation: Teacher
I tried with the for loop, but could not get the result like this. Can you please help me.
Thank you!
I have a array:
NSArray *myArray = [NSArray arrayWithObjects
I would like to product a result as NSString like this:
1 | Color: Red | Name: John | Age: 20 | Occupation: Student
2 | Color: Blue | Name: Jane | Age: 24 | Occupation: Singer
3 | Color: Green | Name: Kath | Age: 35 | Occupation: Teacher
I tried with the for loop, but could not get the result like this. Can you please help me.
Thank you!