当cell复用时里面又有for循环addsubview的时候

for (UIView * subview in [self.bgView subviews]) {

            [subview removeFromSuperview];

        }

猜你喜欢

转载自www.cnblogs.com/allenwuhen/p/9138169.html