A drop-in replacement for UILabel that supports attributes, data detectors, link embedding, both automatically with UIDataDetectorTypes and manually by specifying a range for a URL, address, phone number, or event.
Questions tagged [tttattritubedlabel]
11 questions
6
votes
2 answers
How to make TTTAttributedLabel align center programatically in IOS
I am developing an app where I have a string that consists of tags with prefix #.
I am using TTTAttribute Label to add links to words which are having prefix # in a given string.
When I added links to TTTAttribute label. It successfully added and…

Vidhyanand
- 993
- 10
- 21
5
votes
0 answers
Can I use NSBaselineOffsetAttributeName with TTTAttributedLabel?
I've tried to use NSBaselineOffsetAttributeName with TTTAttributedLabel but it seems to have no effect. For example, this does not seem to do anything:
[label setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^…

rickharrison
- 4,867
- 4
- 35
- 40
3
votes
1 answer
didSelectLinkWithURL not getting called with TTTAttributedLabel
So I'm using TTTAttributedLabel in swift and I (think I) have everything set up properly. didSelectLinkWithURL is not getting called, and I have no idea why. The link "highlight" shows up in the label - so I don't think I'm setting it up wrong.…

mlevi
- 1,433
- 3
- 18
- 30
3
votes
1 answer
TTTAttributedLabel link detection not working using Storyboard
I am trying to integrate TTTAttributedLabel into a UITableViewCell. It's really just a simple integration and all I wanted to was to substitute the old UILabel with TTTAttributedLabel. Here's what I did.
Go to Storyboard and select the UILabel…

Vlad
- 8,038
- 14
- 60
- 92
2
votes
1 answer
TTTAttributedLabel Delegate didSelectLinkWithURL is not getting called in iPhone
This is my code, whenever I click the link didSelectLinkWithURL delegate is not getting called. Any help is appreciated.
TTTAttributedLabel *tttLabel = [[TTTAttributedLabel alloc]initWithFrame:CGRectMake(10, 10, 200, 200)];
NSString…

Gopinath Shiva
- 3,822
- 5
- 25
- 48
0
votes
1 answer
TTTAttributedLabel didSelectLink is not calling in swift 4.0
I use TTTAttributedLabel, this is my code. When I click the Link getting bling, but attributedLabel(_ label: TTTAttributedLabel!, didSelectLinkWith url: URL!) is not calling. any one help me. I all so set the delegate for the label. can you please…

mouni
- 327
- 1
- 3
- 15
0
votes
1 answer
Unable to use TTTAttributedLabel framework
I am using TTTAttributedLabel to make UILabel hyperlink, I am trying to do this as below:
NSAttributedString *attString = [[NSAttributedString alloc] initWithString:@"By tapping you agree to the Terms of Use and Privacy Policy."
…

Uzair Dhada
- 333
- 2
- 6
- 23
0
votes
1 answer
Folder Structure and Xcode Workspace for a Cocoapod
I would like to distribute some classes as a Cocoapod. I intend to provide the following:
The classes themselves (a few UIView subclasses)
A small example application
I have been looking through some well established Github projects and it looks…

Ben Packard
- 26,102
- 25
- 102
- 183
0
votes
2 answers
TTAtributedLabel set multicolor with Using UIColor which defined in header with MACRO?
i am using TTAtributedLabel library for using multicolor in a label with following code.
[lifeEventLabel setText:tempString afterInheritingLabelAttributesAndConfiguringWithBlock:^(NSMutableAttributedString *mutableAttributedString) {
…

BhavikKama
- 8,566
- 12
- 94
- 164
0
votes
1 answer
Disable Copy on UILabel with UserInteractionEnabled enabled
I use TTTAttributedLabel for customizing my UILabel. But there is a problem, i do not want to have the function "copy to clipboard" when i hold my finger on the label and, in the official documentation, seems that there is no way to disable this…

Monte
- 1,018
- 8
- 15
0
votes
1 answer
TTTAttributedLabel detect multi links
Is there a way to detect which link being pressed? I can open the "next" VC but I can't seem to detect which word. This is how I detect which words should be links:
NSArray *words = [cell.lblDescription.text componentsSeparatedByString:@" "];
…

hugocarlmartin
- 719
- 1
- 8
- 25