I am trying to add pull to update to a table view controller, so I worked on the functionality and then I work on the layout. The functionality works fine, but I have some layout issues, I want to change the font and font color of the header. I changed them to the Update Controller Attribute on the storyboard, but every time I run the project, all my settings return to default. So, I tried to work with them using code, and now I can change the background and tintColor, but I can not change the font and color. Could you please help me and this is my code:
refresh.backgroundColor = UIColor(red: 220/255, green: 220/255, blue: 220/255, alpha: 1)
refresh.tintColor = UIColor(red: 155/255, green: 155/255, blue: 154/255, alpha: 1)
var label:NSAttributedString = NSAttributedString(string: "Refresh!!!")
refresh.attributedTitle = label
Thank,
source
share