0
我在UITableViewController场景中创建了5个静态单元格。一切工作正常,但我无法设置选定的特定单元格!如果它是原型单元,那么它很简单,但我怎么能设置静态单元格选择?以下代码引发了BAD内存访问异常!我已根据discussion on apple thread完成此操作,但不知道有什么问题!有人可以帮忙吗?iOS 6.0 Storyboard:设置静态单元格
- (void)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
[super tableView:tableView cellForRowAtIndexPath:indexPath];
if(indexPath.section == _rating)
[tableView cellForRowAtIndexPath:indexPath].accessoryType =UITableViewCellAccessoryCheckmark;
}