您的位置:首页 > 其它

tabviewcell 上次选中和这次选中

2015-10-22 11:38 183 查看
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSInteger newRow = [indexPath
row];
NSInteger oldRow = (lastindexPath!=nil)?[lastindexPath
row]:-1;
if (newRow != oldRow) {
myTableViewCell *newcell=(myTableViewCell *)[m_tabview
cellForRowAtIndexPath:indexPath];

[newcell setrightHidden:YES];

myTableViewCell *oldcell=(myTableViewCell*)[m_tabview
cellForRowAtIndexPath:lastindexPath];

[oldcell setrightHidden:NO];

lastindexPath =indexPath;

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: