CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

Chris DAnnunzio

2pods

LMArrayChangeSets

This is a set of simple categories that help with a common pattern I use for updating array-backed UITableViews and UICollectionViews.

It extends NSArray to provide a simple diff functionality. You provide the initial array, the updated array, and an identity comparison block, and the method returns an NSDictionary of NSIndexSets with the inserted, deleted and moved indexes.

Categories are provided for UITableView and UICollectionView that can take the IndexSet dictionary and perform the updates as a batch with row/cell animation.

License: MIT

  • Objective C

LMCircularScrollingFlowLayout

LMCircularScrollingFlowLayout is a UICollectionViewFlowLayout subclass that provides circular (wrapped, infinite) scrolling behavior in a UICollectionView.

Just use in place of UICollectionViewFlowLayout when setting the layout on your collection views. You can select it as the UICollectionViewFlowLayout subclass in interface builder.

Works fine with all the standard flow layout features, including multiple sections and multiple lines in a section. Works well with scrollview paging enabled or disabled.

NOTE: This layout hasn't been tested with some of the new auto-cell sizing features included with iOS 8.0 yet. If you try it out, I'd like to hear if it works or not.

License: MIT

  • Objective C