summaryrefslogtreecommitdiffstats
path: root/Classes/TopicTableViewCell.m
blob: 03d202d5173665e6cbb44dcee6ab4bac3ee2f3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
//  TopicTableViewCell.m
//  acidcow
//
//  Created by Matthew Handler on 4/15/11.
//  Copyright 2011 Earl Industries. All rights reserved.
//

#import "TopicTableViewCell.h"


@implementation TopicTableViewCell

@synthesize title, iconUrl, picCount, picCountLabel, gradient, categoryLabel; // titleLabel, icon

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code.
    }
//	titleLabel.lineBreakMode = UILineBreakModeWordWrap;
//	titleLabel.numberOfLines = 0;
//	UIView *backgroundView = [[UIView alloc] initWithFrame:self.frame];
//	backgroundView.backgroundColor = [UIColor whiteColor];
//	self.backgroundView = backgroundView;
//	[backgroundView release];

	//self.contentView.backgroundColor = [UIColor whiteColor];
	//NSLog(@"where");
    return self;
}

//- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
//	[super initWithFrame:frame reuseIdentifier:reuseIdentifier];
//	NSLog(@"here");
//}
//- (void)init {
//	[super init];
//	NSLog(@"there");
//	UIView *myBackView = [[UIView alloc] initWithFrame:self.frame];
//	myBackView.backgroundColor = [UIColor whiteColor];
//	self.backgroundView = myBackView;		
//}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [gradient removeFromSuperview];
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}

- (void)setIconUrl:(NSString *)url {
//	NSData *imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:url]];
//	[icon setImage:[[UIImage alloc] initWithData:imageData]];
}

- (void)setTitle:(NSString *)string {
	titleLabel.text = string;
}

- (void)setPicCount:(NSString *)string {
	picCountLabel.text = string;
}

- (void)dealloc {
	//NSLog(@"powering down");
	[title release];
	[iconUrl release];
	[picCount release];
	[gradient release];
	[picCountLabel release];
    [super dealloc];
}


@end