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
0
votes
1 answer

Getting a TTTAttributedLabel to print bold

Trying to use the TTTAttributedLabel framework for the first time. I want to use it to make part of my UILabel printed in a bold font and the other part printed light font: let messageLabelString = "\(notificationSenderName) would like to rent your…
Rutger Huijsmans
  • 2,330
  • 2
  • 30
  • 67
0
votes
0 answers

Handling newer emoji characters in UILabel on older iOS versions

Is there a well defined way to handle newer emojis on older iOS versions in a UILabel? For example the taco, middle finger etc that were added in iOS 9.
rounak
  • 9,217
  • 3
  • 42
  • 59
0
votes
1 answer

iOS put HTML text in UILabel

I need to put HTML text with bold,italic and links in a UILabel. If I use NSAttributedString the links aren't clickable. If I use TTTAttributedLabel links are clickable but the formatting (bold and italic) is not visibile. This problem drive me…
Fry
  • 6,235
  • 8
  • 54
  • 93
0
votes
1 answer

Using TTTAttributedLabel to format html code in UILabel

I'm using TTTAttributedLabel to show HTML code in UILabel that contains code (like bold, italic etc) and links. This is my code - (void)fetchText { NSMutableAttributedString * tmp = [[NSMutableAttributedString alloc]…
Fry
  • 6,235
  • 8
  • 54
  • 93
0
votes
2 answers

Detecting links in html (with changing positions) in UILabel (TTTAttributedLabel)

I've got some text coming from my server, some of which is HTML. I was able to use the attributed string and initWithData to format the text for display so that Apple shows as Apple and blue and underlined. But I couldn't detect the tap. I used…
skinsfan00atg
  • 571
  • 1
  • 3
  • 19
0
votes
1 answer

TTTAttributedLabel custom addLinkToURL not working

I use an api that returns hyperlinks in format. I use a regex to get the text between the tags, and the text between the href to get the url. I want to display the text between the tags and link to the url in the href. I create the label like…
David Raijmakers
  • 1,369
  • 1
  • 16
  • 40
0
votes
2 answers

UITableViewCell indentation funkiness

No existing questions quite get at what is happening in my app. Indentation levels in my UITableViewCell subclass are sporadically either at 1 or 0. The text in the cell will either indent or hug the left margin (seemingly at random) as cells are…
QED
  • 9,803
  • 7
  • 50
  • 87
0
votes
1 answer

Override tap gesture in tttaributredlabel link

In my application , I have a tttattributedlabel detect link and open in web view . if I set uitapgesture on this attributed label then gesture is always fire . link is not working in any case if tap gesture set on attributed label .
Garry
  • 407
  • 2
  • 15
0
votes
1 answer

Can't set linkAttributes on TTTAttributedLabel

Using TTTAttributedLabel, with my code: NSString *contentText = @"some text here foo bar"; [self.content setText:contentText afterInheritingLabelAttributesAndConfiguringWithBlock:^NSMutableAttributedString *(NSMutableAttributedString…
benhowdle89
  • 36,900
  • 69
  • 202
  • 331
0
votes
1 answer

TTTAttributedLabel addLinkToURL NSRange confusion

I am making a swift app and I want to add a url to a TTTAttributedLabel. I have got addLinkToUrl but it wants a NSRange. What should I put. I am new to swift. I want the url to be for the entire text. //PersonTalking is a TTTAttributedLabel …
Nathan Schafer
  • 273
  • 4
  • 15
0
votes
1 answer

How to shrink the size of the text inside a label

Im trying to get text to fill the entire bounds of a label no matter how long or short the text string is. I want the largest possible font size without any truncation or clipping. I set up my label like so: var messageTitle =…
grabury
  • 4,797
  • 14
  • 67
  • 125
0
votes
1 answer

Showing Clickable URLs and icon in UILabel

I am using TTTAttributedLabel for URLs and phone number in my app. Every thing is working fine but the problem is that now I need to show icon in the UILabel. Before I am using given below code. But due to use of TTTAttributedLabel now…
Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83
0
votes
2 answers

TTTAttributedLabel with large amounts of text which requires scrolling

I am using the TTTAttributedLabel library to build links in a block of text. I believe TTTAttributedLabel uses UILabel (not easily scrollable) as a base class instead of UITextView which is scrollable. This text view can contain a relatively large…
joelbyler
  • 125
  • 3
0
votes
1 answer

Can't highlight the same text within NSString using TTTAttributedLabel

I'm new in iOS development and I'm trying to highlight a repetitive text inside a NSString using TTTAttributedLabel but always I obtain the first occurrence bolded. This is a little sample i'm using, what I'm doing wrong?. I'm not sure if the…
0
votes
0 answers

TTTAttributedLabel, not able to run on iOS 5.1 device

I am trying to run an app with a deployment target of iOS 5.1, on a device with the same iOS version. I am running it from Xcode 5 and I have added TTTAttributedLabel to my project for attributed strings. But when I run it, it gives me the following…
Rameez Hussain
  • 6,414
  • 10
  • 56
  • 85