Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8456749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:37:39+00:00 2026-06-10T12:37:39+00:00

I am having a problem with Three20’s TTSTyledTextLabel. i have specified the view like

  • 0

I am having a problem with Three20’s TTSTyledTextLabel. i have specified the view like this

//iphone properties
    htmlSubtitle_ = [[TTStyledTextLabel alloc] init];
    htmlSubtitle_.font = [UIFont systemFontOfSize:14];
    htmlSubtitle_.contentInset = UIEdgeInsetsMake(2, 2, 2, 2);
    htmlSubtitle_.backgroundColor = [UIColor clearColor];
    htmlSubtitle_.textColor = [UIColor whiteColor];
    htmlSubtitle_.textAlignment = UITextAlignmentCenter;
    htmlSubtitle_.userInteractionEnabled = NO;  
    htmlSubtitle_.text = [TTStyledText textFromXHTML:@"<p><p>I dont know where this\n is going<br/> but it is ok :D</p></p>" lineBreaks:YES URLs:YES];;
    htmlSubtitle_.frame = CGRectMake(0, 390, 200, 90);
    htmlSubtitle_.backgroundColor = [UIColor greenColor];
    [self.view addSubview:htmlSubtitle_];

it looks like this :
enter image description here

And when i rotate the screen i have written this code :

else if (interfaceOrientation == UIInterfaceOrientationLandscapeRight){
  htmlSubtitle_.frame = CGRectMake(0, 0, 90, 200);
  htmlSubtitle_.transform = CGAffineTransformMakeRotation(M_PI / 2);
  htmlSubtitle_.backgroundColor = [UIColor greenColor];
}

and it looks like this :

enter image description here

see the text alignment, the alignment has been changed to left instead of remaining in center. is somebody else having this problem? or am i doing something wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:37:40+00:00Added an answer on June 10, 2026 at 12:37 pm

    I have used UIWebView to show the HTML Styled Text instead of using this TTStyledLabel crap … Thanx everybody.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having problem in my UIscrollView ,this is what I have done: Whenever a
I'm having problem with datagrid view. I have attached an image with the code
I am having problem in using this font in my Application. I have imported
I'm having problem with my array basicly this is what i have: $test =
am having problem in Saving some data in my Java code. I have like
I'm having problem accessing the usual properties like frame, bounds, origin, size, etc etc.
I am having problem to get a numerical value for this expression where I
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
Having problem with this bit of code qith jQuery. it should pick the values
I having problem to update the counter (integer value). this is the definitions of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.