How to Add Check Box in custom Table View Cell?

后端 未结 1 690
说谎
说谎 2020-12-22 05:02

I want to create custom check box in my Custom UITableViewCell. I have used following way in UITableViewCell but doesn\'t find it appropriate. I need to it in

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-22 05:57

    cell.btn = [[UIButton alloc]init];
    
    cell.btn.tag=indexPath.row;
    [cell.btn addTarget:self action:@selector(ActionSingleSelect:) forControlEvents:UIControlEventTouchUpInside];
    

    0 讨论(0)
提交回复
热议问题