UITableView问题中的iphone详细信息文本
因此,我能够创建一个数组来填充表中的字段,但是在创建出现在主字段下面的子文本时遇到了困难。我目前有:UITableView问题中的iphone详细信息文本,iphone,Iphone,因此,我能够创建一个数组来填充表中的字段,但是在创建出现在主字段下面的子文本时遇到了困难。我目前有: - (void)viewDidLoad { [super viewDidLoad]; listOfForms = [[NSMutableArray alloc] init]; [listOfForms addObject:@"First Form"]; } 然后: NSString *cellValue = [listOfDAForms objectAtIndex:indexPath
- (void)viewDidLoad {
[super viewDidLoad];
listOfForms = [[NSMutableArray alloc] init];
[listOfForms addObject:@"First Form"];
}
然后:
NSString *cellValue = [listOfDAForms objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
在cellForRowAtIndexPath部分中。为什么我不能补充:
listOfNames = [[NSMutableArray alloc] init];
[listOfNames addObject:@"Named Form"];
及
为了使小子视图工作?我做错了什么?一定要用样式
UITableViewCellStyleSubtitle
初始化你的单元格,一定要用样式UITableViewCellStyleSubtitle
初始化你的单元格。我看不出有任何错误,问题一定在其他地方。实际的症状或错误消息是什么?没有错误,下标只是没有显示。我没有看到任何错误,问题一定在其他地方。实际症状或错误消息是什么?没有错误,下标只是不显示
NSString *cellSubscript = [listOfNames objectAtIndex:indexPath.row];
cell.detailTextLabel.text = cellSubscript;