Questions tagged [tttattributedlabel]

TTTAttributedLabel is "a drop-in replacement for UILabel that supports attributes, data detectors, links, and more".

TTTAttributedLabel is "a drop-in replacement for UILabel that supports attributes, data detectors, links, and more".

Further links:

78 questions
2
votes
1 answer

Xcode UIAutomation can't interact with TTTAttributedLabel

I'm trying to write automation scripts for my app and my problem is that Xcode UI Automation just can't see the elements of TTTAttributedLabel class. Getting full elements tree shows no sign of those TTTAttributedLabel elements. I'm using Xcode…
Sergii Kim
  • 65
  • 1
  • 5
2
votes
0 answers

TTTAttributedLabel's touchesBegan does not get called

everyone. I'm been using TTTAttributedLabel on my iOS app, and I use addLinkToURL:withRange: method. But, sometimes, TTTAttributedLabel's touchesBegan does not get called. Here is my code. This code outwardly work fine. However, sometimes,…
tsk
  • 225
  • 3
  • 9
2
votes
1 answer

TTTAttributedLabel : issue detecting links.

I've been having some issues while using TTTAttributedLabel. Sometimes a given URL doesn't get coloured as a link nor does it react to touch. However, this is solved by scrolling down and up, so by making the Cell view re-draw. I've looking at the…
Christian776
  • 156
  • 4
  • 11
1
vote
1 answer

Clicking on link freezes the app

I'm using Xamarin.TTTAttributedLabel to parse HTML in xamarin.ios app. Most of the times, whenever I click on the link it freezes the app. Sometimes it works and sometimes it doesn't. I'm using Label inside UIView --> ScrollView. My scrollview…
1
vote
1 answer

Setting HTML text for UILabel in IB

Getting HTML text from back-end, now i am manually removing and formatting the tags and adding bullet points for
  • tags. if any other

    tag or
    tag is coming means then i am removing it. Checked RTLabel, Unable to use this in Interface…

  • R. Mohan
    • 2,182
    • 17
    • 30
    1
    vote
    0 answers

    What is the best working approach for having a substring as hyperlink?

    I am using TSLabel. It is working really good for iOS 10.2 and lower versions but does'nt work in iOS 10.3. I also tried to use TTTAttribuedLabel but because of some reason the framework crashes in its one of the method. Right now i am stuck. I dont…
    Uzair Dhada
    • 333
    • 2
    • 6
    • 23
    1
    vote
    0 answers

    Tapable Label with NSAttributedString

    I'm trying to create aUILabel where certain words are underlined and tapping on them triggers an event. To do so I am following the top answer in this link, however I translated it to Swift : Create tap-able "links" in the NSAttributedString of a…
    Alk
    • 5,215
    • 8
    • 47
    • 116
    1
    vote
    2 answers

    iOS Creating attributed label like TTTAttributedLabel in CKLabelComponent

    I can easily use TTTAttributedlabel to have tappable url, name, etc. 1) How can I create something similar to that in CKLabelComponent? 2) Do I need to use CKTextComponent? [CKLabelComponent newWithLabelAttributes:{ …
    Khant Thu Linn
    • 5,905
    • 7
    • 52
    • 120
    1
    vote
    1 answer

    why TTTAttributedLabel doesn't show last line content after some special symbols on IOS?

    This is the correct format on Android: But the content of last line doesn't show up on iOS: I tried method below still not work: [_contentLab setText:str afterInheritingLabelAttributesAndConfiguringWithBlock:^NSMutableAttributedString…
    1
    vote
    0 answers

    TTTAttributedLabel's attributedTruncationToken not working as expected

    In the label I'm using a attributed text which can contain urls, if the number of line exceed the limit, label should show 'continue reading' as attributedTruncationToken. I'm observing two problems: 1)- Text just before 'continue reading' appeared…
    Shrejas
    • 468
    • 1
    • 4
    • 15
    1
    vote
    1 answer

    TTTAttributedLabel sizetofit and sizeWithFont is different

    I am using TTTAttributedLabel and I usually use sizetofit in my tableview cell. After that, I use sizeWithFont in my cell height calculation. I set TTTAttributedLabel like this. [self.attributedLabel setText:@"Test\n\n\n\n"]; CGSize contentSize =…
    Khant Thu Linn
    • 5,905
    • 7
    • 52
    • 120
    1
    vote
    2 answers

    How to set "NSBackgroundColorAttributeName" on TTTAttributedLabel, OHAttributedLabel or SETextView in Swift

    I'm trying to set NSBackgroundColorAttributeName attribute on TTTAttributedLabel, OHAttributedLabel or SETextView, but it's not work. Anyone have any idea? Sample code is followed. class ViewController: UIViewController { @IBOutlet weak var…
    yoshinbo
    • 741
    • 1
    • 6
    • 12
    1
    vote
    2 answers

    Pass tap event to the subview iOS

    I have a TTTAttributed Label which detect link on it by self and I have a tap gesture on it which perform some action. The problem is when I have a tap gesture on it then it cant be able to open the link It only can perform the action by tap gesture…
    1
    vote
    1 answer

    TTTAttributedLabel setbackground color

    I am using TTTAttributedLabel and need to set background color. I can set text color like this. [mutableAttributedString addAttribute:NSForegroundColorAttributeName value:color range:range]; …
    Khant Thu Linn
    • 5,905
    • 7
    • 52
    • 120
    1
    vote
    1 answer

    NSMutableAttributedString can not change the text color when calling addAttribute method

    i want to change the text color based on the 3rd part lib which is "TTTAttributedLabel" , but it does not make sense. Here is my code: TTTAttributedLabel *priceInfoLabel.frame = [[TTTAttributedLabel alloc]…
    Qijin
    • 307
    • 2
    • 13