Skip to content
프로젝트

소개

iOS(iPhone/iPad)용 고성능 Grid-View입니다. 제스처로 뷰를 정렬할 수 있으며(손가락으로 항목을 움직여 정렬), 핀치·회전·팬 제스처로 뷰를 조작하고 셀 뷰와 전체 크기 표시 사이를 전환할 수 있습니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

#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]


Since Apple introduced UICollectionView, this project is no longer supported.

The good news is that if you are familiar with GMGridView, you'll learn UICollectionView in a snap ! Thank you Apple engineers; I take the design similarity as a compliment.

For any comments, ping @gmoledina


An iOS Grid-View allowing the user to sort the views in the scrollView and also to see the views in full-size 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.

Let us know how this component works out for you!


Fresh from the baking oven:

  • The component is now shipped as a static library
  • The component now inherits from UIScrollView and changing the scroll delegate is now allowed!
  • Support for different item sizes per interface orientation

Coming soon:

  • Changing the zoom scale dynamically (when pinching to go fullscreen)
  • Better performance of items scalling on pinch
  • More customization options

Consider making a small donation to support future developement of this component.


Requirements:

  • iOS 4 and up
  • Xcode 4.2 (GMGridView uses ARC)
  • 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
  • Inherits from UIScrollView - you can override the UIScrollViewDelegate if you wish
  • 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
  • Paging!! 2 horizontally paged layout strategies added
  • shaking animation on items when in edit mode
  • Changing the scrollview delegate is allowed!
  • Cell highlighting support
  • 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 - Gestures:

  • Perform a long-press to switch to edit (jiggle) mode
  • Tap between cells to terminate edit mode

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 doesn't have it's own gesture recognizers, the main view handles a set of gestures for ALL views

관련 프로젝트 살펴보기

불러오는 중…