here is the code:.
cell.textLabel.text = [arrayObj1 objectAtIndex:indexPath.row];but, NSLog displays the value of arrayObj1, then why table view cell not displaying the text.
cell.detailTextLabel.text = [arrayObj2 objectAtIndex:indexPath.row]];
NSLog(@"%@", [arrayObj1 objectAtIndex:indexPath.row]);
Please suggest me the reason, why it's not working?
Tarun Kumar
17-Nov-2015Table view cell provides styles for setting text label in Right and Left alignment:
These are the two styles:
UITableViewCellStyleValue1 - it will set label on the left side of the cell with left-aligned and black text, on the right side is a label that has smaller blue text and is right-aligned.
UITableViewCellStyleValue2 - it will set label on the left side of the cell with right-aligned with blue, on the right side of the cell is another label with smaller text that is left-aligned and black.
set these styles in your code like this: