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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:45:02+00:00 2026-05-21T08:45:02+00:00

I see some strange behavior in one of my UITableViewCell s. When setting the

  • 0

I see some strange behavior in one of my UITableViewCells. When setting the font of textLabel to an italic font ( [UIFont fontWithName:@"Helvetica-BoldOblique" size:17] ), a few pixels at the end get cut off. It’s not looking really bad, but I would like to avoid it. Any suggestions?

Image

I’m using the default UITableViewCell as I only need one UILabel, so no need to subclass. I tried calling [cell.textLabel sizeToFit] after setting the font, but it didn’t work.

  • 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-21T08:45:03+00:00Added an answer on May 21, 2026 at 8:45 am

    As occulus pointed out, the UILabel is not wide enough for the italic text. However, because I’m using the default UITableViewCell, I can not change this. (The textLabel frame seems to be set at some point unknown to me. When -tableView:willDisplayCell:forRowAtIndexPath: is called, it’s still CGRectZero.)

    So the only solution seems to add a space at the end of my string, as Nick Weaver suggested:

    cell.textLabel.text = [NSString stringWithFormat:@"%@ ", cell.textLabel.text];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using Rails date_select with :prompt => true I see some very strange behavior
I see some strange behavior which I do not understand. I have a helper
I see some strange behavior on the maximum heap size I get on Sun's
I'm noticing some strange results with date conversions between MYSQL and PHP. Please see
I have some strange behavior occurring in an ASP.NET application that I am trying
I'm curious to see if anyone can shed some light on some strange text
I am facing some strange behavior with file-name completion in emacs. C-x C-f to
Strange one here, hoping to get some feedback to point me in the right
I get some strange behavior when sorting a c++ vector with at custom comparator
I have some strange behavior in my rails3 app. When I pick a date

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.