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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:08:40+00:00 2026-06-10T02:08:40+00:00

I have a weird issue: I’m using a UIPickerView to pick some values. When

  • 0

I have a weird issue:

I’m using a UIPickerView to pick some values. When a value is picked I want to update a row in a UITableView with that value from the pickerview. So I have saved a reference to the particular cell.

So when I select a row in the pickerview I do this in the pickerview delegate method - didSelectRow...

self.pickerviewCell.textLabel.text = [self.pickerViewDataSource objectAtIndex:row];

And then I dismiss the pickerview with an animation. But for some reason after the pickerview is off the screen I see the label in the row being updated with three dots ... which would indicate that the text is too long for the label and then a second after the dots disappears and the full text of the label is displayed. The text strings are not too long, they are between 3 and 5 characters long and should fit perfectly in the textLabel of a UITableViewCell.

Anyone have a clue?

  • 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-10T02:08:41+00:00Added an answer on June 10, 2026 at 2:08 am

    Found the solution after some trial and error.

    Turned out that since the cell was a custom subclass of UITableViewCell I needed to reference the instance variable to that custom subclass and not the UITableViewCell superclass.

    So all I did was go from:

    @property (nonatomic, strong) UITableViewCell *cell

    to

    @property (nonatomic, strong) MyCell *cell

    And it worked out flawlessly. Pretty weird behaviour though. But it works.

    EDIT:

    Actually I was too quick there. It didn’t work by just changing the class to my subclass. What I instead noticed worked was that if after setting the self.pickerviewCell.textLabel.text property I call [self.pickerviewCell.textLabel sizeToFit] But what is weird is that in another View Controller in my application I can do the above without needing to call - sizeToFit on the UILabel for it to display properly.

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

Sidebar

Related Questions

I'm have a weird issue here. I have a UITableView using custom UITableViewCells. Everything
I have a weird issue with creating an Bitmap in C++. I'm using the
I have a weird issue. I have some icons that are being built based
I have a really weird issue here. I'm using my local development server right
I seem to have some weird issue going on that I am sure will
I have a weird issue using polymorphism. I have a base class that implements
I have this weird issue in Magento when someone places an order using PayPal
I have this weird issue with special characters. In JSP, I am using field
I have a weird issue with session variables. I'm storing some credentials in sessions
I have a weird issue reading a .csv file using c#. Here are 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.