Search code examples
iphoneuitableviewheightrow

iPhone + UITableView + row height


I am setting the row height of my UITableView using following code

[tableView setRowHeight: 100.00];

I am using the single line as separator in the UITableView.

Eventhough setting the height above, height of row does not get change.


Solution

  • You should implement

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
    

    delegate method. and return 100.0 there.