Wednesday, September 15, 2010

Displaying the text of the UITableViewCell

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

// create a cell

UITableViewCell *cell=[[UITableViewCell alloc]
initWithStyle:UITableViewCellDefault
reuseIdentifer:@"sunny"];


//fill with contet


cell.textLabel.text=[test objectAtIndex:indexPath.row];


//return it

return cell;

// we done it baby =))

}

No comments:

Post a Comment