美文网首页
iOS cell找对应的tableView

iOS cell找对应的tableView

作者: e40c669177be | 来源:发表于2016-12-06 17:25 被阅读81次

//层级 1.tableView 2.UITableViewWrapperView 3.cell
//当完成的时候,cell已经按照之前的完成了布局,就不在更新新的布局(位置了,所有这里要拿到tableView进行刷新数据,让他重新计算布局)注([self layoutIfNeeded]在这里不管用..........坑)
dispatch_async(dispatch_get_main_queue(), ^{

    UITableView *table = (UITableView *)self.superview.superview;
    
    
    
    [table reloadData];
    
});

相关文章

网友评论

      本文标题:iOS cell找对应的tableView

      本文链接:https://www.haomeiwen.com/subject/hsprmttx.html