I have a ViewController which consist of UILabel
and UIButton
. OnClick UIButton
a popOver
present which show tableView
. each cell of tableView
represent different font option.
I want to change the font of UILabel
based on user selected font from tableViewCell
. how i can achieve this as my UILabel
and tableView
are in different viewController class.
Please help me.
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
var row = indexPath.row
// How to update label from here
}
Edit : I fond this answer but not able to understand as its return in objective c update ViewController label text from different view