Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var resultString = NSMutableAttributedString(string: "Hello ", attributes: [NSForegroundColorAttributeName : UIColor.redColor()])
  2. var worldString = NSMutableAttributedString(string: "World", attributes: [NSForegroundColorAttributeName : UIColor.blueColor()])
  3.  
  4. resultString.appendAttributedString(worldString)
  5.  
  6. UILabel().attributedText = resultString
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement