Hello,
I have a strange problem. I have a tableview with two sections. I am customizing them and on last row I have a button. When pressed, it reads the information from rows with the function cellForRowAtIndexPath.
This worked well until I changed the last row's height :
-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if ([indexPath row] == [last count]-1)
return 200.0;
return 44.0;
}
When calling cellForRowAtIndexPath for the first two rows I am getting a nil, the rest are retuning well.
When I comment the function heightForRowAtIndexPath, it works well.
Any Idea?