Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Readme update and minor changes

  • Loading branch information...
commit 6fbb642b77c98eeaabbf7dde9de47854e8cb265f 1 parent 2e226b5
@gmoledina authored
2  GMGridView/API/GMGridViewCell.m
@@ -65,7 +65,7 @@ @implementation GMGridViewCell
- (id)init
- if ([self initWithFrame:CGRectZero])
+ if (self = [self initWithFrame:CGRectZero])
6 GMGridView/API/GMGridViewLayoutStrategies.h
@@ -36,8 +36,8 @@
typedef enum {
GMGridViewLayoutVertical = 0,
- GMGridViewLayoutHorizontalPagedLTR,
- GMGridViewLayoutHorizontalPagedTTB
+ GMGridViewLayoutHorizontalPagedLTR, // LTR: left to right
+ GMGridViewLayoutHorizontalPagedTTB // TTB: top to bottom
} GMGridViewLayoutStrategyType;
@@ -168,7 +168,7 @@ typedef enum {
@property (nonatomic, readonly) NSInteger numberOfPages;
-// These 3 methods can be implemented by child classes
+// Only these 3 methods have be reimplemented by child classes to change the LTR and TTB kind of behavior
- (NSInteger)positionForItemAtColumn:(NSInteger)column row:(NSInteger)row page:(NSInteger)page;
- (NSInteger)columnForItemAtPosition:(NSInteger)position;
- (NSInteger)rowForItemAtPosition:(NSInteger)position;
@@ -1,6 +1,11 @@
+"Definitely looks like one to watch" []
+"(one of) the best grid(s) i've seen so far" [User]
An iOS Grid-View allowing the user to sort the views in the scrollView and also to see the views in fullsize by pinching them.
This view is inspired by the UITableView and uses a datasource and delegates in order to get the data and interact with it.
@@ -8,11 +13,22 @@ The cells are reusable and are not loaded until required (only the ones visible
It is important to use the dequeue method to reuse the cell.
The best sorting style (swap or push) depends on personal taste and the frame of the grid; you can choose the one that suits you best.
-Same applies to the layout strategy (vertical or horizontal... and more to come).
+Same applies to the layout strategy (vertical, horizontal, paged,... and more to come).
Many working examples provided in the demo app!
All the files in the API folder are required. You only need to deal with 2 header files though (the grid and the cell).
+Fresh from the baking oven:
+- Paging!! 2 horizontally paged layout strategies added
+Coming soon:
+- Changing the zoom scale dynamically (when pinching to go fullscreen)
+- More customization options
+- Support for iOS 4
@@ -26,7 +42,7 @@ Features - General:
- Reusable cells
- Edit mode to delete cells
- Gestures work great inside of the scrollView
-- Different layout strategies (Vertical and Horizontal)
+- 4 different layout strategies (Vertical, Horizontal, Horizontal Paged LTR/TTB)
- Possibility to provide your own layout strategy
- Demo app provided, with options panel
@@ -42,10 +58,5 @@ Features - Fullsize:
- Provide a different fullsize view (detailed view) for the view via the delegate
- Every view doesnt have it's own gesture recognizers, the main view handles a set of gestures for ALL views
-- Changing the zoom scale dynamically (when pinching to go fullscreen)
-- Support for pagging
-- Support for iOS 4
Latest code can be found on GitHub:

0 comments on commit 6fbb642

Please sign in to comment.
Something went wrong with that request. Please try again.