Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var resultString = NSMutableAttributedString(string: "Hello ", attributes: [NSForegroundColorAttributeName : UIColor.redColor()])
- var worldString = NSMutableAttributedString(string: "World", attributes: [NSForegroundColorAttributeName : UIColor.blueColor()])
- resultString.appendAttributedString(worldString)
- UILabel().attributedText = resultString
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement