我有自定義單元格(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