TableView 确认选中了哪一行

当我们点击某个cell时,会执行下面这个方法,方法中调用另一方法执行具体操作:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    if (0 == indexPath.section) {
        [self btnActionForUserSetting:self];

    } 
}

你可能感兴趣的:(编程学习易错点)