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

崩溃在- (void)sd_layoutSubviews #124

Closed qggz0524 closed 7 years ago

qggz0524 commented 8 years ago

在这个方法崩溃,无法定位

ZXSGG commented 8 years ago

me too。 it works well on simulator ,but when i debug on iphone ,it sometimes will crash mostly.I use with masonry either。

q563469 commented 7 years ago

me too。 it works well on simulator ,but when i debug on iphone ,it sometimes will crash mostly.I use with masonry either

SilenceLove commented 7 years ago

我能说经常的么?有时候项目一运行就蹦在这里

gsdios commented 7 years ago

如果你的项引入了sd库,那么在你的所有view(不管是否使用了sd布局)调用layoutSubviews方法时会走sd_layoutSubviews内部,如果此view没有使用sd布局就直接调用默认的或者你自己实现的layoutSubviews方法而sd不会做任何处理,换言之,如果crash在这里可能是因为你的layoutSubviews内部逻辑问题

SilenceLove commented 7 years ago

放你妈的猪皮