heightForRowAtIndexPathデリゲートメソッドの[tableView cellForRowAtIndexPath:indexPath]にアクセスしようとするとアプリケーションがクラッシュします。heightForRowAtIndexPathデリゲートメソッドのTableViewCellにアクセスするとアプリケーションがクラッシュする
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([tableView cellForRowAtIndexPath:indexPath] someBOOLProperty]) {
return kSomeHeight;
}
return kDefaultHeight;
}
はい、正しいものを入力してください。 – rishi