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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:30:44+00:00 2026-06-17T12:30:44+00:00

Here is the text present in my UILable… This list isn’t actually based on

  • 0

Here is the text present in my UILable…

“This list isn’t actually based on a straight popularity count; simply tallying the most-read verses results in a top 100 list that consists almost entirely of John 3:16 and verses from 1 Corinthians 13, Genesis 1, Romans 8, and Psalm 23. Our list instead considers instances in which BibleGateway.com users looked at three or fewer verses at one time.”

How do i get the final line of text..ie.,”at three or fewer verses at one time.” from my uilable.

Any solution is greatly appreciated.

  • 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-17T12:30:44+00:00Added an answer on June 17, 2026 at 12:30 pm

    I can give one idea . May this will help you.

     UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(50,50,200,350)];
        myLabel.numberOfLines = 0;
        myLabel.lineBreakMode = UILineBreakModeWordWrap;
        myLabel.text = @"This is some text in a UILabel which is long enough to wrap around the lines in said UILabel. This is a test, this is only a test.";
        [self.view addSubview:myLabel];
        CGSize labelSize = [myLabel.text sizeWithFont:myLabel.font 
                                    constrainedToSize:myLabel.frame.size 
                                        lineBreakMode:UILineBreakModeWordWrap];
        CGFloat labelHeight = labelSize.height;
        NSLog(@"labelHeight = %f", labelHeight);
        [myLabel release];
    

    with above you can get height of label, then you can get the # of lines by dividing the height with some appropriate number which depends on the font size.

    1) After this Get NSAttributedString from your UILabel.
    2) From NSAttributedString you can get “\n” characters.
    3) get last “\n” and extract value from this index to last index.

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

Sidebar

Related Questions

I have a document structure {'text': 'here is text', 'count' : 13, 'somefield': value}
This is an extension to the question I asked here: Get text from clipboard
The first part of this question is now its own, here: Analyzing Text for
I have a text file that looks like this: STUFF UP HERE APEXED NUMBER
Can check out here alt text http://51hired.com/static/problem.bmp
Please take a look here: alt text http://img16.imageshack.us/img16/2810/errrp.jpg Why i got that error when
text = urllib.urlopen('www.text.com').read() frase = re.search(your text here(.*), text).group() With these code, I get
I know I can use placeholder=some text here... but how to make it so
Let's say I have some original text: here is some text that has a
I can't get the icons to line up with the text here is 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.