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

Demo--3中numberOfRowsInSection:为什么调用了6次? #68

Closed CallMeZack closed 8 years ago

CallMeZack commented 8 years ago

你好,今天下载看了一下,Demo--3中的numberOfRowsInSection:本地调试,打印显示调用了6次,为什么呢?就刚初始化显示就调用了6次,heightForRowAtIndexPath:每一行调用了8次(本地设置rowCount=5)总次数就是rowCouunt*8了---比如第一行的高度是272,则会打印8次272,。