Getting UITableViewCell with superview in iOS 7

前端 未结 5 2006
栀梦
栀梦 2021-01-04 20:18

I\'m getting the UITableViewCell a UIButton belongs to like this:

-(void)buttonHandler:(UIButton *)button {

    OrderCell *cell = [[button superview] superv         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 21:09

    if ([[button superView] isKindOfClass:[UITableViewCell class]]) {
    
    }
    
    else //check next :
    

提交回复
热议问题