1.在cell里,.h写一个Block.

@property (nonatomic,copy)void(^telephoneBlock)();
2. 在cell里,.m写一个点点击事件.

- (IBAction)didclickPhone:(id)sender {
    
    if (self.telephoneBlock) {
        self.telephoneBlock();
    }
}

3.在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

        cell.telephoneBlock=^(){
         
            NSLog(@"phonenumber is ======%@",shopmodel.phone);
        };

相关文章:

  • 2021-11-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案