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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:03:42+00:00 2026-05-11T19:03:42+00:00

I have a custom UITableViewCell with a UIScrollView in it that is wired to

  • 0

I have a custom UITableViewCell with a UIScrollView in it that is wired to the cell controller. When I assign text to the scrollview, some cells get the correct text, some are blank, some redisplay old text and others have the scrollview clipped around the 2nd or 3rd line of text. It seems random on what will happen. I followed the suggestion here of using a timer to fix blank cells, http://www.bdunagan.com/2008/12/08/uitextview-in-a-uitableview-on-the-iphone/, but that didn’t help. I placed the timer code in the cellForRowAtIndexPath method.

I’ve also tried calling

[cell.textview setNeedsDisplay];

after text is assigned to the textview but it doesn’t have any affect.

When I use a textfield or label, everything looks fine. However, I need something that can scroll text. Any suggestions on a fix or better way?

  • 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-11T19:03:43+00:00Added an answer on May 11, 2026 at 7:03 pm

    Update: Found this on the dev forums (specifically mentions your problem):

    https://devforums.apple.com/message/38944#38944

    I would follow the link it has some more detailed info.

     // view controller
    
    - (void)scrollViewDidScroll:(UIScrollView *)scrollView
    {
         NSArray*     visibleCells = [self.tableView visibleCells];
    
         for (UITableViewCell* cell in visibleCells)
         {
              if ([cell.reuseIdentifier isEqualToString:kTextViewCellID])
              {
                   [(MTextViewCell*)cell refresh];
              }
         }
    }
    
    // MTextViewCell 
    
    
    - (void)refresh
    {
         // mucking with the contentOffset causes the textView to redraw itself
         CGPoint     contentOffset = mTextView.contentOffset;
         CGPoint     contentOffset1 = { contentOffset.x, contentOffset.y + 1.0f };
    
         mTextView.contentOffset = contentOffset1;
         mTextView.contentOffset = contentOffset;
    }
    

    Try calling:

    [tableView reloadData];
    

    After you update all the textViews.

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

Sidebar

Ask A Question

Stats

  • Questions 120k
  • Answers 120k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I received a suggestion that I use ADO.NET to convert… May 12, 2026 at 12:10 am
  • Editorial Team
    Editorial Team added an answer hey do some thing like this if xml is like… May 12, 2026 at 12:10 am
  • Editorial Team
    Editorial Team added an answer Well I'd say that most people write their own code… May 12, 2026 at 12:10 am

Related Questions

I have a UITableView with a custom UITableViewCell. In cellForRowAtIndexPath, I assign a font
Here is the situation, I have UIViewController class with a UITableView outlet. I would
I've set up a UITableView with several custom UITableViewCell's that have some UITextField's and
I am able to design custom UITableViewCells and load them just fine using the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.