gsdios / SDAutoLayout

One line of code to implement automatic layout. 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based on runtime.
MIT License
5.9k stars 1.28k forks source link

Cell Label 高度自适应 #105

Closed GitSmark closed 8 years ago

GitSmark commented 8 years ago

初始加载数据Cell可以正常显示,刷新或加载数据布局就乱了,应该是我Cell重用的问题,本人新手参考了GSD_WeiXin朋友圈的做法还是找不出问题,请大神指教.... [self.tableView registerClass:[self.cellClass class] forCellReuseIdentifier:Identifier];

@implementation ADWTableViewCell //- (instancetype)initWithFrame:(CGRect)frame { //
// if (self = [super initWithFrame:frame]) { //
// } // return self; //}

GitSmark commented 8 years ago

完整源码在这里,https://github.com/GitSmark/Void_Add_iOS

gsdios commented 8 years ago

先看下SDAutoLayout的视频教程,然后检查下你的约束设置,还有问题的话加入 SDAutoLayout的QQ群497140713找管理员帮你解答下