jverkoey/nimbus — pull request #337 by netsgnut (2013-02-01 04:17:47+00:00)
Title: [attributedlabel] Allow linkColor to be ignored when nil.

I have recently encountered a project where the links in attributed label have to be styled in different color. However, it seems that if it is a link, the color that is specified through `setLinkColor:` takes precedence over `setTextColor:range:`.

In the local copy of nimbus in that project, a change was made to ignore `linkColor` if it is `nil`. Therefore, one could specify different colors of links as follows:

```objective-c
NIAttributedLabel *labelView = [[NIAttributedLabel alloc] init];
[labelView setLinkColor:nil];

[labelView setText:@"Hello Nimbus!"];
[labelView addLink:[NSURL URLWithString:@"http://example.com/"] range:NSMakeRange(0, 5)];
[labelView setTextColor:[UIColor redColor] range:NSMakeRange(0, 5)];
[labelView addLink:[NSURL URLWithString:@"http://nimbuskit.info/"] range:NSMakeRange(6, 6)];
[labelView setTextColor:[UIColor brownColor] range:NSMakeRange(6, 6)];
```

I am not sure if it is useful to others, nor if there is another better way of doing this (a flag for global ignore of link styles perhaps?). Please kindly review and see if it is appropriate. Thanks!