JSQMessagesViewController icon indicating copy to clipboard operation
JSQMessagesViewController copied to clipboard

UI Bug when scrolling down quickly on UICollectionView

Open jgibbons opened this issue 12 years ago • 7 comments

When scrolling down quickly on the messages, a translucent pane is rendered on top of the top navigation bar and part of the message UICollectionView. I found it easier to replicate on my iPhone, but have also found the issue in the simulator as shown below from the latest Version 5 branch.

ios simulator screen shot apr 8 2014 3 09 54 pm

PS: Jesse, love Version 5 - thanks so much!

jgibbons avatar Apr 08 '14 19:04 jgibbons

I've ran into this a few times doing the same procedure as you. I tried tracking it down but the closest i can come to is using Reveal App to inspect the UI and it seems to be a UITextEffectsWindow appear over the UIWindow

screen shot 2014-04-08 at 3 38 44 pm

cswelin avatar Apr 08 '14 19:04 cswelin

@jgibbons - oh, i see you've found my favorite bug! :) i'm still trying to figure out the exact steps to reproduce. it is incredibly odd. i really have no idea what to do at the moment.

@cswelin - thanks for looking into it more!

I appreciate any help you guys can offer with this one!

jessesquires avatar Apr 08 '14 20:04 jessesquires

@jessesquires - I can replicate this 9 out of 10 times by doing to following:

  1. Start performing swipe down gesture, but do not swipe all the way down yet.
  2. Hold the swipe and move back up, the keyboard en toolbar will move upwards to their starting position and the table view contents will move along with your swipe.
  3. When there is about a 1 inch gap between the input toolbar and the table contents, swipe all the way down as fast as possible. Edit: just before your finger touches the bottom of screen, release it from the screen.

Edit: I found out that I need to release my finger from the screen right before it reaches the bottom of the screen.

out2

koenbud avatar Apr 16 '14 22:04 koenbud

When I remove [self.textView resignFirstResponder] from the animation completion block, the issue seems to be gone. However, this obviously causes other issues, but it does give an idea where to look.

completion:^(BOOL finished) {
     if (shouldHide) {
         NSLog("Keyboard is now at y: %f", self.keyboardView.frame.origin.y);
         [self jsq_setKeyboardViewHidden:YES];
         [self jsq_removeKeyboardFrameObserver];
         //[self.textView resignFirstResponder];
     }
 }];

koenbud avatar Apr 17 '14 00:04 koenbud

I think I fixed it, please check pull request https://github.com/jessesquires/MessagesTableViewController/pull/231

koenbud avatar Apr 17 '14 01:04 koenbud

more awesome info! thanks!

jessesquires avatar Apr 17 '14 01:04 jessesquires

fixed in PR #231

jessesquires avatar Apr 18 '14 04:04 jessesquires