0
在我的表视图,我设置的选择样式里面小区选择的风格变化
- (void)tableView:(UITableView *)iTableView didSelectRowAtIndexPath:(NSIndexPath *)iIndexPath {
MyCell *aCell = (MyCell *)[iTableView cellForRowAtIndexPath:iIndexPath];
aCell.selectionStyle = UITableViewCellSelectionStyleBlue;
现在,在第二次敲击,而不是在第一抽头选择风格变化。一旦单元被轻敲,那么它可以正常工作,如果你回来并再次选择它。这是什么原因?
你可以发布你的代码为数据源委托 - 'cellForRowAtIndexPath'?我的猜测是你需要在改变底层模型之后调用'reloadData'。 – 2011-05-16 21:30:40