In one view in my application, I use the checkmark component of TableCell's in order for the user to make multiple selections from a UITableView. If the row is checked, I store that cell in an NSMutableArray. I then pass that entire array to an NSMutableDictionary, which is passed to the subsequent views.
When I get to the last view, I want to take all of the information in that array and add it to one string and display it in a UITextView. This is what I am trying, but I can't figure out how to get a String out of the text since the cells use UILabels.
Code:
NSMutableArray *conFactors = [finalDictionary objectForKey:@"Contributing Factors"];
NSString *finalContributeString = [[NSString alloc] init];
for(NSUInteger i = 0; i < [conFactors count]; i ++) {
NSString *tempString = (NSString *)[[conFactors objectAtIndex: i] textLabel];
finalContributeString = [finalContributeString stringByAppendingString:@", "];
finalContributeString = [finalContributeString stringByAppendingString:tempString];
}
Any ideas how to take the UILabel property and get an NSString out of it??