Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 69 lines (50 sloc) 2.72 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
GM-GRID-VIEW
-------------

"Definitely looks like one to watch" [ManiacDev.com]
"Looks like the best 3rd party implementation I have seen so far" [iosDevWeekly.com]

---

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.

The cells are reusable and are not loaded until required (only the ones visible on the scrollview are loaded).
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, 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).

Let us know how this component works out for you!
New feature requests are welcome. (ping @gmoledina or @steipete)

---

Fresh from the baking oven:
- Support for iOS 4
- Paging!! 2 horizontally paged layout strategies added
- shaking animation on items when in edit mode

Coming soon:
- Changing the zoom scale dynamically (when pinching to go fullscreen)
- API for adding a pageControl
- More customization options

[Check the develop branch (unstable) for features in development]

---

Requirements:
- iOS 4 and up
- ARC (Automatic Reference Counting) enabled
- Frameworks: Foundation, UIKit, CoreGraphics and QuartzCore

Features - General:
- Works on both the iPhone and iPad (best suited for iPad)
- Works on both portrait and landscape orientation
- Reusable cells
- Edit mode to delete cells
- Gestures work great inside of the scrollView
- 4 different layout strategies (Vertical, Horizontal, Horizontal Paged LTR/TTB)
- Possibility to provide your own layout strategy
- Demo app provided, with options panel

Features - Sorting:
- Perform a long-touch on a view to be able to move it
- Two different animation styles ("Swap" or "Push")
- Sorted view has a shake animation (can be disabled)
- Only one UIPanGestureRecognizer and one UILongTouchGestureRecognizer used to track ALL views

Features - Fullsize:
- Pinch, rotate and drag views using 2 fingers
- Switch to fullsize mode on the view at the end of these gestures if the view scaled enough
- 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


Latest code can be found on GitHub: https://github.com/gmoledina/GMGridView
Something went wrong with that request. Please try again.