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

block方式算高崩溃问题 #115

Open lucky2046 opened 8 years ago

lucky2046 commented 8 years ago

在一个tableview中先使用- (CGFloat)cellHeightForIndexPath:(NSIndexPath )indexPath cellClass:(Class)cellClass cellContentViewWidth:(CGFloat)width cellDataSetting:(AutoCellHeightDataSettingBlock)cellDataSetting; 后使用- (CGFloat)cellHeightForIndexPath:(NSIndexPath )indexPath model:(id)model keyPath:(NSString *)keyPath cellClass:(Class)cellClass contentViewWidth:(CGFloat)contentViewWidth;会出现崩溃的问题

问题出现在
else if (self.cellDataSetting) { self.cellDataSetting(self.modelCell); }