The scroll bar indicator is sent to the front each time the scroll view
motion stops and starts, this would require a new layout.

On Tue, Feb 8, 2011 at 10:15 AM, David Duncan <david.dun...@apple.com>wrote:

> On Feb 8, 2011, at 8:15 AM, Roland King wrote:
>
> > I can't see why UIScrollView would call layoutSubviews every time it
> scrolls, I expected that it would call layoutSubviews once only when its
> geometry changes (or you ask it to) and after that would just scroll its
> contained view quietly.
>
>
> Technically scrolling is a geometry change, since it is accomplished by
> changing the layer's bounds.origin (basically the change is coming from Core
> Animation). If your layout is expensive, it is likely that you will need to
> maintain a separate "layout is dirty" flag to avoid this.
> --
> David Duncan
>
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/mr.redd%40gmail.com
>
> This email sent to mr.r...@gmail.com
>



-- 
Bryce
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to