UITableviewCell 子控件超出ContentView 让其显示出来的解决办法

1、- (void)scrollViewDidScroll:(UIScrollView *)scrollView {

  NSArray *vicells =  [self.customsTableView  visibleCells];

    for (UITableViewCell *vcell in vicells) {

        [self.customsTableView bringSubviewToFront:vcell];

    }

}

 

2、- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{

    [tableView bringSubviewToFront:cell];

}

posted @ 2018-09-11 14:55  ruixin_jia  阅读(2113)  评论(0编辑  收藏  举报