Quote:
Originally Posted by gunther
hi, i have in my app warnings when set information at the cell object whit font, images, etc.. this works but in my xcode i see severals lines yellow!! can tell me how do is the correct way for write this functions in os 3.0?
Code:
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
here!!! cell.font = [UIFont boldSystemFontOfSize:12.0];
}
// Set up the cell...
UIImage *image = [UIImage imageNamed:@"iconPages.png"];
here!!! cell.image = image;
here!!! cell.text = [arrayfav objectAtIndex:indexPath.row];
|
For the cell.text part you use.
Code:
cell.textLabel.text = [arrayfav objectAtIndex:indexPath.row];
For the cell.image part you use.
Code:
cell.imageView.image = [UIImage imageNamed:@"iconPages.png"];
I think the image one's correct, can't remember off the top of my head without looking at a previous project file, I'm sure that's what I've used before.
Regards