Skip to content
Newer
Older
100644 51 lines (42 sloc) 1.24 KB
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
1 //
2 // DTGridViewController.m
3 // DTKit
4 //
5 // Created by Daniel Tull on 19.04.2009.
6 // Copyright 2009 Daniel Tull. All rights reserved.
7 //
8
9 #import "DTGridViewController.h"
10
11
12 @implementation DTGridViewController
13
14 @synthesize gridView;
15
16 - (void)viewDidLoad {
17 [super viewDidLoad];
18 self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
19 self.view.autoresizesSubviews = YES;
dca5670 @danielctull Updated to use iPhone OS 3.0's -viewDidUnload method for unsetting th…
authored Feb 11, 2010
20 gridView = [[DTGridView alloc] initWithFrame:self.view.bounds];
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
21 self.gridView.autoresizingMask = self.view.autoresizingMask;
22 [self.view addSubview:self.gridView];
23 }
24
dca5670 @danielctull Updated to use iPhone OS 3.0's -viewDidUnload method for unsetting th…
authored Feb 11, 2010
25 - (void)viewDidUnload {
26 self.gridView = nil;
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
27 }
28
29 - (void)dealloc {
30 [gridView release];
31 gridView = nil;
32 [super dealloc];
33 }
34
35 - (NSInteger)numberOfRowsInGridView:(DTGridView *)gridView {
36 return 0;
37 }
cdcebdf @danielctull Fix warnings found in the DCTKit project
authored Feb 20, 2011
38 - (NSInteger)numberOfColumnsInGridView:(DTGridView *)gridView forRowWithIndex:(NSInteger)theIndex {
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
39 return 0;
40 }
41 - (CGFloat)gridView:(DTGridView *)gridView heightForRow:(NSInteger)rowIndex {
cdcebdf @danielctull Fix warnings found in the DCTKit project
authored Feb 20, 2011
42 return 0.0f;
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
43 }
44 - (CGFloat)gridView:(DTGridView *)gridView widthForCellAtRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
cdcebdf @danielctull Fix warnings found in the DCTKit project
authored Feb 20, 2011
45 return 0.0f;
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
46 }
47 - (DTGridViewCell *)gridView:(DTGridView *)gridView viewForRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
dca5670 @danielctull Updated to use iPhone OS 3.0's -viewDidUnload method for unsetting th…
authored Feb 11, 2010
48 return nil;
a224b79 @danielctull Initial commit. Split out from DTKit.
authored Feb 10, 2010
49 }
50 @end
Something went wrong with that request. Please try again.