iphone - how to add a subtext to a table cell? -
I have created a table view that shows database fields. I is going to add sub-labels and subtext to each cell, which I can display in other database fields. Need help.
So you want the main text and a subtitle. Like music app? If you want, you want to set the style of the table view to "UITableViewCellStyleSubtitle" and then how to set the main label;
cellName.textLabel.text = @ "Label Text"
and to set the subtitle;
cellName.detailTextLabel.text = @ "subtitle lesson"
Comments
Post a Comment