Hi. I have a UIScrollView that contains an image that might be zoomed in. The top of the scroll view has an autolayout constraint to the bottom of a view that slides down from the top 100.0 pixels when shown. I do this by calling -layoutSubviews in an -animateWithDuration:animations: call after updating the constraints on the banner.
The content, however, pops into its new location relative to the top of the UIScrollView's frame at the start of animation (but doesn't animate). I'd like for it to stay put in relation to the screen. I tried to set the contentOffset in the same animation block, but that just makes the content move smoothly. It seems to not matter which way I adjust the contentOffset, which is bizarre. Whether I add to or subtract from the y coordinate, it always animates down. Exacerbating things is that I KVO the contentOffset and update a bunch of stuff in an overlay view, and none of that animates. -- Rick
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com