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

  • Home
  • SEARCH
  • 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

Related Questions

I have a custom UITableViewCell which has an image & and some text. When
I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).
I have a custom UITableViewCell subclass. I have set the contentView of my cell
I have a custom UITableViewCell that contains a UISlider control and a UILabel which
I have a few models that need to have custom find conditions placed on
I have a custom installer action that updates the PATH environment, and creates an
We have a custom-built Flash-based video player that I maintain, and it needs to
I have a custom UITableViewCell with a UILabel and a UITextView in it. I
I have a custom uitableviewcell. It has a uitextfield. I'd like the parent tableview
I have a custom UITableViewCell which contains several UIButtons. Each button's frame position is

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.