LoginSignup
7
6

More than 5 years have passed since last update.

swiftでTTTAttributedLabelを使ったときにlinkAttributesが反映されない場合の対処法

Last updated at Posted at 2015-07-21

Swift版が無かったので。
ついでにアンダーラインも入れるように。


myLabel.linkAttributes = [ kCTForegroundColorAttributeName : UIColor.blueColor(),  NSUnderlineStyleAttributeName : NSNumber(long: NSUnderlineStyle.StyleSingle.rawValue) ]

関連リンク
iOS8でTTTAttributedLabelを使ったときにlinkAttributesが反映されない場合の対処法

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6