• 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: Animating UIScrollView frame change without moving contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Animating UIScrollView frame change without moving contents
      • From: Rick Mann <email@hidden>
References: 
 >Re: Animating UIScrollView frame change without moving contents (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Animating UIScrollView frame change without moving contents
  • Next by Date: Re: Animating UIScrollView frame change without moving contents
  • Previous by thread: Re: Animating UIScrollView frame change without moving contents
  • Next by thread: Re: Animating UIScrollView frame change without moving contents
  • Index(es):
    • Date
    • Thread