Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A performant Grid-View for iOS (iPhone/iPad) that allows sorting of views with gestures (the user can move the items with his finger to sort them) and pinching/rotating/panning gestures allow the user to play with the view and toggle from the cellview to a fullsize display.
Objective-C C
Tree: 3805ae815b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


GM-GRID-VIEW (MIT license)

An iOS Grid-View allowing the user to sort the views in the scrollView with a finger: the user can move the items with the finger to sort them and a delegate is notified to ensure the datasource is up-to-date. 
This view is inspired by the UITableView and uses a delegate and a datasource to get the data and interact with it.

- iOS 5 (for NSMutableOrderedSet and to access the UIScrollView gestureRecognizers)
- ARC (Automatic Reference Counting) enabled

- Works on both the iPhone and iPad
- Works on both portrait and landscape orientation
- Perform a long-touch on a view to be able to move it
- Moving of views works great inside the scrollview
- Only one UIPanGestureRecognizer and one UILongTouchGestureRecognizer used to track ALL views
- Two different animation styles ("Swap" or "Push")
- Demo app provided

- Not loading all views at once (using CATiledLayer ?)
- Adding a pinch on views to zoom them
- Adding an animation flag on method definition (i.e: animated:(BOOL)animated)
- UnitTests

Latest code can be found on GitHub:
All comments are welcome!
Something went wrong with that request. Please try again.