UICollectionView in practice

November 11, 2012

It’s been said that, UICollectionView is going to change the face of iOS, forever.” No longer do developers have to deal with transforms on UITableView (and subsequently odd behavior on rotation). Of course, I was wiring up these kinds of views pre-iOS 5 before custom containment was even available.

As of this writing, one snag about the MonoTouch implemenetation requires the UICollectionViewCell to “Export”, its’ constructor which prevents our ability to overload the constructor. As a result, to provide the model reference directly as a constructor parameter.

The trivial example below highlights and documents a way to circumvent the wonky behavior as a result of the selector Export.

Enjoy!

Comments

comments powered by Disqus