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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -