Questions tagged [ttstyledtextlabel]

20 questions
4
votes
1 answer

Truncate text in TTStyledTextLabel

I am using a TTStyledTextLabel in my project to parse the hyperlinks, it all works fine. The only problem I am facing is to truncate a long text - show ellipses if the text does not fit in the bounds of TTStyledTextLabel. In other terms, I need the…
Raj Pawan Gumdal
  • 7,390
  • 10
  • 60
  • 92
3
votes
1 answer

How can I make Three20's TTStyledTextLabel work with external images?

I found an old post in the three20 Google Group about external image support not being implemented yet, but that's a few months old and it looks like TTStyledText is trying to support external images in the newer releases. I'm pulling out my hair…
chrissr
  • 9,861
  • 2
  • 29
  • 30
2
votes
1 answer

Using only TTStyledTextLabel from Three20

I want to use Three20's TTStyledTextLabel, in order to provide support for a label where pressing a link inside it will trigger safari to open it. The problem is I'm afraid including the entire Three20 library is quite an overkill, since it has much…
Idan
  • 5,717
  • 10
  • 47
  • 84
2
votes
2 answers

How to adjust width of TTStyledTextLabel?

I am implementing an IM app on iOS. I found that three20 library has a TTStyledTextLabel which provides cool features like showing images and url links. However I want to embed the TTStyledTextLabel in a message bubble (just like the sms app shipped…
Chi Zhang
  • 771
  • 2
  • 8
  • 22
2
votes
2 answers

URLs and Images in TTStyledText

Hi i created a TTStyledTextLabel, works well. Now i want to make URL clickable, i've done this: textLabel.text = [TTStyledText textFromXHTML:[content objectForKey:@"content"] lineBreaks:YES URLs:YES]; but my links are still unclickable. Do i have…
choise
  • 24,636
  • 19
  • 75
  • 131
2
votes
1 answer

TTNavigator not opening URLs when clicking on links in TTStyledTextLabels

Trying to make a simple link clicking activity work. I think I understand TTNavigator and TTStyledLabel, but can't get it to work. Code: @interface SomeVc : UIViewController { IBOutlet TTStyledTextLabel…
Jaanus
  • 17,688
  • 15
  • 65
  • 110
2
votes
1 answer

How to set link font for TTStyledTextLabel

So, I'm fairly new to Three20, but so far the benefits have outweighed the pains in my ass that it's taken to get things working. I'm using some TTStyledTextLabels, and I need to use a particular font for links. I've overridden TTDefaultStyleSheet…
CharlieMezak
  • 5,999
  • 1
  • 38
  • 54
1
vote
0 answers

how to change TTStyledTextTableItemCell 's background

Suppose I create TTTableStyledTextItem objects in conforming class as follows: NSString* text = [NSString stringWithFormat:@"%@\n%@", @"aaaa..", @"bbbb.."]; TTStyledText* styledText = [TTStyledText textFromXHTML:text…
Eduardo Coelho
  • 1,953
  • 8
  • 34
  • 60
1
vote
0 answers

TTStyledTextLabel font size not honored

I tried with the TTCatelog sample comes with Three20 framework, on the StyledTextTestController, somehow the font size is not honored at all, they all showed as the same font and size. Is there any special setting to turn that on? The following is…
tom
  • 14,273
  • 19
  • 65
  • 124
1
vote
4 answers

TTStyledTextLabel offset between link and regular text when changing from default font

I'm using Three20 TTStyledTextLabel and when I change the default font (Helvetica) to something else it creates some kind of height difference between links and regular text The following code demonstrate my problem: #import
Guy Ephraim
  • 3,482
  • 3
  • 26
  • 30
1
vote
1 answer

TTStyledText not displays string which has '<' charcter

I am using TTStyledText to display text on my tableView. I came across a problem where, If my TTStyledText text contains '<' character than my complete text becomes null. TTStyledText *text = [TTStyledText textFromXHTML:@"3<5" lineBreaks:YES…
JiteshW
  • 2,195
  • 4
  • 32
  • 61
1
vote
1 answer

Clicking on a TTStyledTextLabel selects the UITableViewCell

I have a TTStyledTextLabel inside a UITableViewCell. Clicking on the cell navigates to a new view controller, so I can't disable selection, but when I click the TTStyledTextLabel, the UITableViewCell is also selected. Any thoughts on clicking the…
Quentamia
  • 3,244
  • 3
  • 33
  • 42
0
votes
1 answer

Opening TTStyledLabel images in ImageViewer

Is there any way for me to make it so when a user clicks on an image that is in a TTStyledLabel it opens up in three20's image viewer?
endy
  • 3,872
  • 5
  • 29
  • 43
0
votes
1 answer

Catch the event when a URL Link is tapped within TTStyledTextLabel

I'm working with TTStyledTextLabel and I'm facing the following problems. I do appreciate if you could take a look and support me somehow to fix them. The app I'm developing has been developed by another developer. It's based on the standard…
Thang Tran
  • 72
  • 7
0
votes
2 answers

TTStyledTextLabel inside UITextView

I have a need to display text that includes HTML tags etc and TTStyledTextLabel fits the bill.....but it does not scroll. I placed one inside a UITextView but this refuses to scroll? If I enter the text directly in the UITextView it scrolls OK but…
user7865437
  • 812
  • 14
  • 28
1
2