1

I have a UIScrollView. This scroll view scrolls my custom GameView. When I send setNeedsDisplay to my GameView, it redraws and everything goes fine.

Except when I'm in the middle of scrolling GameView. It does not redraw until the scrolling has stopped.

Is there any way to circumvent this and just force the view during the scroll?

By the way, I already found these questions, but they didn't help:
UIScrollView pauses NSTimer until scrolling finishes
How do I get my UIView to redraw while the user is scrolling a UIScrollView

Community
  • 1
  • 1
Rits
  • 5,105
  • 4
  • 42
  • 53

1 Answers1

0

Try sending the view's layer displayIfNeeded immediately after setNeedsDisplay.

Costique
  • 23,712
  • 4
  • 76
  • 79