iOS UITableView numberOfRowsInSection in tableView heightForRowAtIndexPath give BAD ACCESS
问题 I have receive a EXC Bad Access error when I enter the if statement below [tableView numberOfRowsInSection:0] .I'm calculating the tableView numberOfRowsInSection of the UITableView inside the heightForRowAtIndexPath . I have got following code to set height for last row of first section -(CGFloat )tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ if (indexPath.section==0) { NSInteger lastRowIndex = [tableView numberOfRowsInSection:0] - 1; if (indexPath.row=