Inferis/ViewDeck — Issue #19: UITextView repainting issue when reopening a view
Author: mtedesco
Created: 2012-01-21 23:10:09+00:00
State: open

I've integrated ViewDeck - very cool experience - and for the most part I have been able to work around integrating other projects that assume as standard IOS UIKit implementation.

One issue that baffles me, however, is a repainting issue with UITextView. It only happens when I use ViewDeck to own the UIViewController containing the UITextView.

On launch of the app, I display a UIViewController that contains a UITextView with content in it. All content is shown properly. This UIViewController is the "center" or "main panel".

Just like Facebook's app does, I have a trigram in the upper left nav bar, and the user can slide the center panel away to see a menu in a UITableView. All good here too.

However, when the user *reselects* the menu item to display the original center panel, the UITextView:
- contains all of the content
- however it does not display it all, it only displays the text on the left 1/3 of the panel.
- the remaining text is not painted visually on the screen, but it exists inside the UITextView.

This issue only happens when I'm in the ViewDeck model. I'm a fairly experienced developer and have tested all sorts of things, including repainting the UITextView in a delayed performSelector after all the animation for the ViewDeck is completed. No luck.

The only thing that repaints the UITextView is when the user rotates the screen.

Any ideas what could be going on?