// // 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; // 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; return self; } - (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