All pastes #2113930 Raw Edit

Stuff

public text v1 · immutable
#2113930 ·published 2012-02-09 10:45 UTC
rendered paste body
- (UITableViewCell *)tableView:(UITableView *)myTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
   
    UILabel *mainLabel, *secondLabel;
    UIImageView *photo;
    UITableViewCell * cell = [myTableView dequeueReusableCellWithIdentifier:@"rssItemCell"];
    
    if(cell == nil)
    {
        
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"rssItemCell"] autorelease];
        cell.accessoryType = UITableViewCellAccessoryNone;
        
        mainLabel = [[[UILabel alloc] initWithFrame:CGRectMake(0.0, 0.0, 235.0, 15.0)] autorelease];
        mainLabel.tag = MAINLABEL_TAG;
        mainLabel.font = [UIFont systemFontOfSize:14.0];
        mainLabel.textAlignment = UITextAlignmentRight;
        mainLabel.textColor = [UIColor blackColor];
        mainLabel.backgroundColor = [UIColor clearColor];
        mainLabel.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleHeight;
        [cell.contentView addSubview:mainLabel];
        
        secondLabel = [[[UILabel alloc] initWithFrame:CGRectMake(0.0, 20.0, 235.0, 25.0)] au