setNeedsDisplayInRect: causes the whole view to be updated

后端 未结 4 1032
故里飘歌
故里飘歌 2020-12-08 23:54

I\'m working on a painting app that uses CoreGraphics for rendering. My problem is, for performance, I am trying to limit the updates to only certain portions of the view th

4条回答
  •  伪装坚强ぢ
    2020-12-09 00:18

    I don't have a lot of devices available to me, but I have great news anyway! As someone who has been wishing for this functionality on iOS for years, I can assert that iOS8.0+ brings this functionality. I've tried on both simulator and device for 8.0, 8.1, 8.2

    I haven't tried this since iOS6. So I'm not sure if its available in iOS7 or not. Perhaps someone else can confirm.

    Please join with me in cheering endlessly for setNeedsDisplayInRect: functioning as documented!

提交回复
热议问题