Hi guys,
I've tried to implement a TTStyledTextLabel (from the Three20 library) in my existing app but unfortunately it doesn't work.
First I've created a label in Interface Builder, changed it's Class Identity to "TTStyledTextLabel" and added the following to my header file:
Code:
...
TTStyledTextLabel *wwwAddress;
}
@property (nonatomic, retain) IBOutlet TTStyledTextLabel *wwwAddress;
...
My implementation looks like the following:
Code:
- (void)viewDidLoad {
...
NSString* wwwText = @"www.test.com";
wwwAddress = [[[TTStyledTextLabel alloc] initWithFrame:self.view.bounds] autorelease];
wwwAddress.font = [UIFont systemFontOfSize:17];
wwwAddress.text = [TTStyledText textFromXHTML:wwwText lineBreaks:YES URLs:YES];
wwwAddress = temp;
...
Nothing is showing up in my app. Does anybody know where's the problem is?
Thank you,
Dennis