soffes / ssdatakit

Eliminate your Core Data boilerplate code
MIT License
453 stars 57 forks source link

Adding SSManagedCollectionViewController #6

Closed rdougan closed 11 years ago

rdougan commented 11 years ago

I'm using SSDataKit for a little project of mine, but needed to use UICollectionViewCollection instead of UITableViewController - so I decided to implement it myself.

Everything works. Very similar API to UITableView.

rdougan commented 11 years ago

I must add; the only big difference is how begin/endUpdates does not exist on UICollectionView - so you must keep a record of the changes, and then use performBatchUpdates instead.

More information: http://ashfurrow.com/blog/how-to-use-nsfetchedresultscontroller-with-uicollectionview

soffes commented 11 years ago

Can you add an ifdef for iOS 6?

rdougan commented 11 years ago

Only inside SSDataKit.h where it is imported, or around the whole class?

soffes commented 11 years ago

Just in SSDataKit.h. Also can you merge master into your branch so it merges cleanly? Thanks!

rdougan commented 11 years ago

Updated

soffes commented 11 years ago

Thanks!