TeehanLax / UICollectionView-Spring-Demo

A demonstration of UICollectionView and UIKit Dynamics
MIT License
471 stars 71 forks source link

crash on insert, disappearing header / footer #9

Closed odyth closed 10 years ago

odyth commented 10 years ago

This fixes two issues.

1) there is a crash when inserting cells if you are trying to reuse a UIAttachmentBehavior if its already in the dynamic animator

2) if you have headers or footers they will disappear once scrolled out of view, but since headers and footer share the same index path as the first and last item they wont reappear consistently. Added a set just for headers and footers.

ashfurrow commented 10 years ago

Thanks! :beers: