AliSoftware / AliSoftware/OHAttributedLabel

Setting text color on links doesn't work in 3.5.3

Open
#167 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
1.5k
Forks
341
PR merge metrics
No merged PRs in 30d

Description

Setting the text color on links in 3.4.3 works as expected, so this must be a new bug.

Here's the code I am using.

```
NSMutableAttributedString* addressStr = /*...*/;
NSRange someRange = /* range */;
[addressStr setLink:[NSURL URLWithString:@"location://store"] range:someRange];
[addressStr setTextColor:[UIColor clearColor] range:someRange];
addressStr.userInteractionEnabled = NO;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.