Guest User

Untitled

a guest
Dec 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. let color = UIColor(white: 0.2, alpha: 1)
  2.  
  3. let attributedTextCustom = NSMutableAttributedString(string:"( format:) %@, attributes: [NSAttributedString.Key.font: UIFont(name:"AvenirNext-Medium", size: 16)!, NSAttributedString.Key.foregroundColor: color])
  4.  
  5. attributedTextCustom.append(NSAttributedString(string: " ((String())", attributes: [NSAttributedString.Key.font: UIFont(name: "AvenirNext-Regular", size: 12)!, NSAttributedString.Key.foregroundColor: UIColor.lightGray
  6. ]))
  7.  
  8. cell.nameLabel.attributedText = attributedTextCustom
Add Comment
Please, Sign In to add comment