使用 collectionview.performBatchUpdates 时,该updates
块不需要self
像下图那样显式。
该方法的文档在这里。https://developer.apple.com/documentation/uikit/uicollectionview/1618045-performbatchupdates
我的猜测是,它performBatchUpdates
的updates
块生命周期比 collectionView 短。并且该updates
块称为 using withoutActuallyEscaping
。
有人有明确的答案吗?
答案很简单。因为它不是逃避封闭