Re: Animating UIScrollView frame change without moving contents
Re: Animating UIScrollView frame change without moving contents
- Subject: Re: Animating UIScrollView frame change without moving contents
- From: Kyle Sluder <email@hidden>
- Date: Wed, 19 Feb 2014 12:23:45 -0800
On Wed, Feb 19, 2014, at 12:17 PM, Rick Mann wrote:
> I tried that, too. Same behavior. When you adjust the top of the left,
> the content moves relative to the top-left corner. I tried changing the
> contentOffset at the same time, to no avail.
That sounds like a bug… you should be able to adjust the contentOffset
and the contentInset within the same animation block, with the result
being that the content doesn't appear to move.
>
> Sorry, I KVO my map view's frame. This seems to work (except for the
> animated movements).
In other words, it doesn't actually work.
frame and bounds are not KVO compliant. I really wish UIKit would throw
an exception if one tries to observe them, because it will break in
subtle ways.
--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