i have created a table view which displays database fields.i need to add a sub-label and a subtext to each cell in which i can display other database fields. need help..
So you want the main text, and a subtitle. Like in the music app? If that's what you want, you want to set the style of the TableView to "UITableViewCellStyleSubtitle". And then the way to set the main label;
cellName.textLabel.text = @"label text"
And to set the subtitle;
cellName.detailTextLabel.text = @"subtitle text".
Add UILabel in the cell and assign text. you can add control in table view cell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With