Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (44 sloc) 1.397 kb
6a63e98 @soffes Started on new collection view
soffes authored
1 //
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
2 // SSCollectionViewExtremityTableViewCell.m
6a63e98 @soffes Started on new collection view
soffes authored
3 // SSToolkit
4 //
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
5 // Created by Sam Soffes on 5/27/11.
6a63e98 @soffes Started on new collection view
soffes authored
6 // Copyright 2011 Sam Soffes. All rights reserved.
7 //
8
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
9 #import "SSCollectionViewExtremityTableViewCell.h"
6a63e98 @soffes Started on new collection view
soffes authored
10
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
11 @implementation SSCollectionViewExtremityTableViewCell
6a63e98 @soffes Started on new collection view
soffes authored
12
bf2d0ec @soffes Started overhauling documentation
soffes authored
13 #pragma mark - Accessors
62be25e @soffes Updated coding style and started on extremitiesStyle
soffes authored
14
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
15 @synthesize extrimityView = _extrimityView;
62be25e @soffes Updated coding style and started on extremitiesStyle
soffes authored
16
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
17 - (void)setExtrimityView:(UIView *)view {
18 [_extrimityView removeFromSuperview];
97a90f6 Fixing potential crashes (EXC_BAD_ACCESS) in setters if the previous obj...
Evan Long authored
19 _extrimityView = view;
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
20 [self addSubview:_extrimityView];
38594d6 @soffes Improve extremities being always on top
soffes authored
21 [self setNeedsLayout];
62be25e @soffes Updated coding style and started on extremitiesStyle
soffes authored
22 }
23
24
bf2d0ec @soffes Started overhauling documentation
soffes authored
25 #pragma mark - UIView
6a63e98 @soffes Started on new collection view
soffes authored
26
27 - (void)layoutSubviews {
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
28 _extrimityView.frame = self.bounds;
6a63e98 @soffes Started on new collection view
soffes authored
29 }
30
31
bf2d0ec @soffes Started overhauling documentation
soffes authored
32 #pragma mark - UITableViewCell
6a63e98 @soffes Started on new collection view
soffes authored
33
34 - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
35 if ((self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier])) {
36 self.backgroundView.hidden = YES;
37 self.selectedBackgroundView.hidden = YES;
38 self.contentView.hidden = YES;
39 self.textLabel.hidden = YES;
40 self.detailTextLabel.hidden = YES;
41 self.imageView.hidden = YES;
f44e277 @soffes Fixed Xcode 4.1 issues and added SSToolkit in the prefix of SSCatalog
soffes authored
42 self.selectionStyle = UITableViewCellSelectionStyleNone;
6a63e98 @soffes Started on new collection view
soffes authored
43 }
44 return self;
45 }
46
47
48 - (void)prepareForReuse {
49 [super prepareForReuse];
f0ee088 @soffes Finished `extremitiesStyle` in SSCollectionView as well as many other SS...
soffes authored
50 self.extrimityView = nil;
6a63e98 @soffes Started on new collection view
soffes authored
51 }
52
53
bf2d0ec @soffes Started overhauling documentation
soffes authored
54 #pragma mark - Initializer
6a63e98 @soffes Started on new collection view
soffes authored
55
56 - (id)initWithReuseIdentifier:(NSString *)aReuseIdentifier {
57 self = [self initWithStyle:UITableViewCellStyleDefault reuseIdentifier:aReuseIdentifier];
58 return self;
59 }
60
61 @end
Something went wrong with that request. Please try again.