Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (35 sloc) 1.264 kB
// WCGridView.h
// StandingHere
// Created by Wess Cope on 5/3/12.
// Copyright (c) 2012 Wess Cope. All rights reserved.
#import <UIKit/UIKit.h>
#import "WCGridViewCell.h"
#import "UIGestureRecognizer+FLKit.h"
typedef struct {
NSInteger row;
NSInteger column;
NSInteger index;
} WCGridIndexPath;
@protocol WCGridViewDataSource;
@protocol WCGridViewDelegate;
@interface WCGridView : UIView
@property (strong, nonatomic) id<WCGridViewDataSource> dataSource;
@property (strong, nonatomic) id<WCGridViewDelegate> delegate;
- (WCGridViewCell *)dequeueReusableCellWithIdentifier:(NSString *)reuseIdentifier;
- (WCGridIndexPath)indexPathForCell:(WCGridViewCell *)cell;
- (void)reloadData;
@protocol WCGridViewDataSource <NSObject>
- (NSInteger)numberOfRowsForGridView:(WCGridView *)gridView;
- (NSInteger)gridView:(WCGridView *)gridView numberOfColumnsForRowAtIndex:(NSInteger)index;
- (WCGridViewCell *)gridView:(WCGridView *)gridView cellForGridIndexPath:(WCGridIndexPath)indexPath;
- (CGFloat)gridView:(WCGridView *)gridView heightForRowAtIndex:(NSInteger)index;
@protocol WCGridViewDelegate <NSObject>
- (void)gridView:(WCGridView *)gridView didSelectCellAtIndexPath:(WCGridIndexPath)indexPath;
Jump to Line
Something went wrong with that request. Please try again.