我有自定义单元格(TJourneyListCell),我有一些标签,我想知道如何通过从其他视图输入更多值来填充表格给我的用户输入他的名字和所有这种想法。当他输入值时,它也应该显示在表格中。我只是尝试这个硬编码值,但是当用户从其他视图输入值时,我需要更多的行比较值。从其他视图或页面传递值到自定义表
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
TJourneyListCell *cell = (id)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[TJourneyListCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:CellIdentifier] autorelease];
}
cell.namelbl.text [email protected]"My journey";
cell.distancelbl.text = @"raji";
cell.infolbl.text = @"pradeep";
cell.timelbl.text = @"harish";
cell.userimageview.image = [UIImage imageNamed:@"listIcon-H.png"];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;
}
这是谁可以帮助我 – user733928 2011-05-13 12:42:10