Permalink
Browse files

Changed README

  • Loading branch information...
1 parent 9a1b26d commit 9282d702dddc3f937c76ebb5946d2b3e50561bdd @camh committed Feb 22, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.markdown
View
@@ -20,6 +20,8 @@ CHGridView is modeled after UITableView. You initialize CHGridView, set a delega
###Usage:
+[Download a sample view controller](http://cameron.io/files/CHGridViewController.zip).
+
Exactly like UITableView. Just implement the two required data source methods: `numberOfTilesInSection` and `tileForIndexPath`. CHGridView assumes there is at least one section. The method `tileForIndexPath` works very much like UITableView; CHGridView reuses tiles just like UITableView reuses cells. Call `dequeueReusableTileWithIdentifier` to get a reusable tile, if it's `nil`, `init` and `autorelease` a new tile and return it.
There's two basic styles to use in GHGridView, one that resembles the iPhone Photos application, and one that mimics iPhoto and the iPad photo grid. The property that controls it is called `dynamicallyResizeTilesToFillSpace`. Set it to `YES` for the iPhone Photos app style.

0 comments on commit 9282d70

Please sign in to comment.