In UITableView, cell.detailTextLabel.text isn't working… why?

前端 未结 9 1056
逝去的感伤
逝去的感伤 2020-12-08 00:34

In tableView:cellForRowAtIndexPath: I have the following:

cell.textLabel.text = @\"label\";
cell.detailTextLabel.text = @\"detail\";
         


        
9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 00:49

    When using Xcode 4.2, set the Table View Cell style to Subtitle in Storyboard. dequeueReusableCellWithIdentifier will return an instantiated cell.

提交回复
热议问题