iPhone/iPad SimpleTableViewCells: What replaces the deprecated setImage setText on table cells?
The below code gives warnings that setImage and setText are deprecated. So what replaced them? What is the new better way to get this simple behavior?
static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier"; UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier: SimpleTableIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier: SimpleTableIdentifier] autorelease]; } cell.image=[UIImage imageNamed:@"Wazoo.png"];; cell.text = @"Wazoo";
So what is the simplest way to have the same affect as image/text of a cell without doing a lot of work or getting warnings?