Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (39 sloc) 0.916 kb
2df67b9 @wess Initial add and updated readme and some dependency issues
authored
1 //
2 // WCGridViewCell.m
3 // StandingHere
4 //
5 // Created by Wess Cope on 5/3/12.
6 // Copyright (c) 2012 Wess Cope. All rights reserved.
7 //
8
9 #import "WCGridViewCell.h"
10
11 @interface WCGridViewCell()
12 @end
13
14 @implementation WCGridViewCell
15 @synthesize reuseIdentifier = _reuseIdentifier;
16 @synthesize titleLabel = _titleLabel;
17
18 - (id)init
19 {
20 self = [super initWithFrame:CGRectNull];
21 if (self)
22 {
0b305bd @wess Fixed several bugs with orientation and typeos, also added a little p…
authored
23 _titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
24 _titleLabel.backgroundColor = [UIColor clearColor];
2df67b9 @wess Initial add and updated readme and some dependency issues
authored
25
26 [self addSubview:_titleLabel];
27 }
28 return self;
29 }
30
31 - (id)initWithReuseIdentifier:(NSString *)reuseIdentifier
32 {
33 self = [self init];
34 if(self)
35 {
36 _reuseIdentifier = reuseIdentifier;
37 }
38 return self;
39 }
40
41 - (void)layoutSubviews
42 {
43 [super layoutSubviews];
44 _titleLabel.frame = CGRectInset(self.bounds, 10.0f, 10.0f);
45 }
46 @end
Something went wrong with that request. Please try again.