iOS 7.1 UitableviewCell content overlaps with ones below

前端 未结 7 1783
执念已碎
执念已碎 2020-12-08 07:11

So I have code, which is sucessfully working on iOS 7.0 but not in 7.1. I have a simple tableview, with code:

- (NSInteger)numberOfSectionsInTableView:(UITab         


        
7条回答
  •  萌比男神i
    2020-12-08 07:48

    This is problem with recreating cell contents. Try with following code segment.

    for(UIView *view in cell.contentView.subviews){  
            if ([view isKindOfClass:[UIView class]]) {  
                [view removeFromSuperview];   
            }
        }
    

提交回复
热议问题