iOS 关于如何将cell.detailTextLabel.text的内容显示出来的问题。


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

在该方法中将在创建cell的时候应该这样设置cell的样式类型cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle  reuseIdentifier:cellIndentifier];

不能采用我们自定义样式cell = [[TheAlarmTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];否则cell.detailTextLabel.text内容显示不出来。



你可能感兴趣的:(iOS)