1.定义一个参数
@property(nonatomic,assign)BOOL selectedCell;
-(void)viewWillAppear:(BOOL)animated
{
self.selectedCell = NO;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (self.selectedCell == NO) {
self.selectedCell = YES;
执行的代码......
}
}
网友评论