自定义的cell,若把子控件加在self.contentview上,iOS7和iOS8都不显示数据;若直接加在self上,iOS8显示,iOS7不显示。是什么原因?有解没??
PHPz2017-04-17 17:45:20
Solved! ! !
iOS7 added on cell.contentView. ios8 is added to the cell;
The problem of non-standard reuse of cells;
PHP中文网2017-04-17 17:45:20
Although the question you asked lacks useful information, I guess based on intuition, did you add the content to self instead of self.contentView when customizing the Cell?
[self addSubview:]
和 [self.contentView addSubview:]
There is still a little difference on iOS 7.