ios - Change TableView text label type -


so in application, have added activelabel, , want use on tableview.

so set text on tableview can this:

cell.textlabel?.text = commentsarray[commentsarray.count - 1 - indexpath.row] 

or this:

cell.textlabel?.text = commentsarray[commentsarray.count - 1 - indexpath.row] as? string 

but how can change cell.textlabel.text uilabel activelabel?

you need create custom uitableviewcell , insert activelabel subview. (note: if create uitableviewcell in storyboard/xib make sure you've selected proper class label).


Comments