• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: view gets drawRect called when scrolling into elastic area
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: view gets drawRect called when scrolling into elastic area


  • Subject: Re: view gets drawRect called when scrolling into elastic area
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 17 Jun 2013 12:07:09 -0700

On Mon, Jun 17, 2013, at 09:50 AM, Steve Mills wrote:
> Can anyone explain why our view subclass is getting drawRect called when
> I scroll into the elastic area with 2-finger scrolling (OS X, not iOS)?
> The view has at least one CALayer and self.wantsLayer has been set to
> YES. This causes it to draw in tiles. All tiles have been rendered, yet
> when I scroll past the actual bounds of the view into the elastic area,
> we get drawRects for *all* tiles. For a complex document, it brings it to
> a crawl if you happen to swipe aggressively into any elastic area.

Elastic scrolling is pretty rough around the edges. There's no API for
drawing into that area, yet apparently it's willing to invalidate all
your other content.

I guess you could set a breakpoint on -setNeedsDisplay:inRect: to figure
out where to stave off invalidation, but _please_ file a Radar about
improving the API around elastic scrolling.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: view gets drawRect called when scrolling into elastic area
      • From: Steve Mills <email@hidden>
References: 
 >view gets drawRect called when scrolling into elastic area (From: Steve Mills <email@hidden>)

  • Prev by Date: core data lightweight migration woes
  • Next by Date: Re: UIPageViewController
  • Previous by thread: Re: view gets drawRect called when scrolling into elastic area
  • Next by thread: Re: view gets drawRect called when scrolling into elastic area
  • Index(es):
    • Date
    • Thread