【发布时间】:2014-06-30 13:05:32
【问题描述】:
我正在实施自定义流程布局。它有两种主要的覆盖方法来确定单元格的位置:layoutAttributesForElementsInRect 和layoutAttributesForItemAtIndexPath。
在我的代码中,layoutAttributesForElementsInRect 被调用,但 layoutAttributesForItemAtIndexPath 未被调用。是什么决定了哪个被调用? layoutAttributesForItemAtIndexPath 在哪里被调用?
【问题讨论】:
标签: ios objective-c uicollectionview uicollectionviewlayout uicollectionviewdelegate