An Excel-liked grid table for Objective-C
- Drawing view based on
UICollectionView
with the benefits of reusing cells - Support fixed rows and fixed columns
- Support background colors, selected state, borders
Create a GTTableView
instance and add it to your view with a proper frame
If you do not extend the view under navbar/tabbar, please disable auto adjust insets by setting
self.automaticallyAdjustsScrollViewInsets = NO;
in your view controller
Implements the GTTableViewDelegate
protocol to handle custom cell content and selection events
Convert your data into GTTableInfo
object and set it to your table
##Requirements
- Xcode 7+
- iOS 8+
Learned a lot from BidirectionalCollectionViewLayout and TSUIKit
GridTable is released under a MIT License. See LICENSE file for details.