iOS7まで
myLabel.linkAttributes = @{NSForegroundColorAttributeName : [UIColor blueColor]};
iOS8
myLabel.linkAttributes = @{(NSString *)kCTForegroundColorAttributeName : [UIColor blueColor]};
iOS8のやり方で、iOS7にも正常に反映されるのでiOS8のやり方がいいかも。
Go to list of users who liked
More than 5 years have passed since last update.
myLabel.linkAttributes = @{NSForegroundColorAttributeName : [UIColor blueColor]};
myLabel.linkAttributes = @{(NSString *)kCTForegroundColorAttributeName : [UIColor blueColor]};
iOS8のやり方で、iOS7にも正常に反映されるのでiOS8のやり方がいいかも。
Register as a new user and use Qiita more conveniently
Go to list of users who liked