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 6354829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:38:38+00:00 2026-05-24T22:38:38+00:00

hi i have a scroll view and in that scrollview i have label and

  • 0

hi i have a scroll view and in that scrollview i have label and and i have a dynamic text for that label …..

and i am adding another label to the scroll view at the end of the first lable…..

and the code is as follows….

UILabel *lblGenericName   = [self createDynamicLabel:responseDrugInfo.GenName
                                        contentFrame:CGRectMake(120, 24, 150, 20) 
                                               color:[UIColor customisedlightgreysColor] 
                                                font:[UIFont regular14]];
[scrollview addSubview:lblGenericName];
[lblGenericName release];

lblGenericName.numberOfLines = 0;

[lblGenericName sizeToFit];

now i want to add dynamically another label at the end of that label …

can any one please help me how to do that……..

  • 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-05-24T22:38:39+00:00Added an answer on May 24, 2026 at 10:38 pm

    Try this

    UILabel *newLabel = [self createDynamicLabel:responseDrugInfo.GenName
                                        contentFrame:CGRectMake(lblGenericName.frame.origin.x + lblGenericName.frame.size.width, lblGenericName.frame.origin.y, lblGenericName.frame.size.width, lblGenericName.frame.size.height) 
                                               color:[UIColor customisedlightgreysColor] 
                                                font:[UIFont regular14]];
    [scrollview addSubview:newLabel ];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view hierarchy that is layed out as follows: parentView scrollView contentViewA
I have a scroll view with transparent background that covers most of the screen.
i have a scroll view in my application and i want that when the
I have a scroll view that I would like to fill the whole screen,
My app takes screenshots. I have a main screen with a scroll view that
I have a scroll view which contains several objects like text fields,labels,switch etc..Now as
I have a scrollview that is set up to scroll back and forth between
I have made a sample where there is a ScrollView and Images that Scroll
In a titanium mobile app, I have a scroll view with objects that are
I have a view that has text fields ranging from the top of the

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.