半空洞男女関係

思ったこととかプログラミングしてるときのメモとか色々かいてます。メールはidそのままgmail

UICollectionView

UICollectionViewやUITableViewでperformBatchUpdatesを行う場合は、更新・削除・挿入を分ける

ドキュメントをよく読んでという話だけど、performBatchUpdates を行う際は、更新とアイテムの挿入・削除の順番に気を付ける必要がある。 performBatchUpdates(_:completion:) | Apple Developer Documentation 更新は先にやる If the collection view's lay…