Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a202318643
Fetching contributors…

Cannot retrieve contributors at this time

executable file 39 lines (30 sloc) 0.914 kb
//
// KKGridViewController.m
// KKGridView
//
// Created by Kolin Krewinkel on 10.22.11.
// Copyright (c) 2011 Kolin Krewinkel. All rights reserved.
//
#import "KKGridViewController.h"
@implementation KKGridViewController
@synthesize gridView = _gridView;
#pragma mark - View lifecycle
- (void)loadView
{
[super loadView];
_gridView = [[KKGridView alloc] initWithFrame:self.view.bounds];
_gridView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
_gridView.dataSource = self;
_gridView.gridDelegate = self;
self.view = _gridView;
}
#pragma mark - KKGridViewDataSource
- (NSUInteger)gridView:(KKGridView *)gridView numberOfItemsInSection:(NSUInteger)section
{
return 0;
}
- (KKGridViewCell *)gridView:(KKGridView *)gridView cellForItemAtIndexPath:(KKIndexPath *)indexPath
{
return [KKGridViewCell cellForGridView:gridView];
}
@end
Jump to Line
Something went wrong with that request. Please try again.