私はNSMutableString
この情報を持っています:
T: Testadata(id:1,title:"Test",subtitle:"test is correct",note:"second test",identifiers:(
ここに私のテーブルの実装があります:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
*)indexPath
{
static NSString *CellIdentifier = @"TestCell";
TestCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell =[ [[NSBundle mainBundle] loadNibNamed:@"TestCell" owner:nil options:nil]
lastObject];
}
NSArray *array = [server get_test:10 offset:0 sort_by:0 search_for:@""];
NSMutableString *t = [NSMutableString stringWithFormat:@"%@ ", [array
objectAtIndex:indexPath.row]];
cell.testTitle.text = t;
NSLog(@" T :%@ ", t);
return cell;
}
今、私はすべての Testdata を私の t に持っています。表示したいのは、タイトル ラベルに Testdata 全体ではなく、タイトルだけを行に表示するにはどうすればよいですか?この実装で私を助けてくれませんか?