Re: Animating UIScrollView frame change without moving contents

2014-02-20 Thread Rick Mann
On Feb 19, 2014, at 23:24 , Uli Kusterer wrote: > On 19 Feb 2014, at 21:17, Rick Mann wrote: >> On Feb 19, 2014, at 09:01 , Kyle Sluder wrote: >> >>> On Tue, Feb 18, 2014, at 06:00 PM, Rick Mann wrote: I tried to set the contentOffset in the same animation block, but that just makes

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Uli Kusterer
On 19 Feb 2014, at 21:17, Rick Mann wrote: > On Feb 19, 2014, at 09:01 , Kyle Sluder wrote: > >> On Tue, Feb 18, 2014, at 06:00 PM, Rick Mann wrote: >>> I tried to set the contentOffset in the same animation block, but that >>> just makes the content move smoothly. >> >> Don't move the scroll v

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Rick Mann
On Feb 19, 2014, at 12:23 , Kyle Sluder wrote: > 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

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Rick Mann
Sent from my iPhone On Feb 19, 2014, at 12:23, Kyle Sluder wrote: > 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 s

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Kyle Sluder
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

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Rick Mann
On Feb 19, 2014, at 09:01 , Kyle Sluder wrote: > On Tue, Feb 18, 2014, at 06:00 PM, Rick Mann wrote: >> I tried to set the contentOffset in the same animation block, but that >> just makes the content move smoothly. > > Don't move the scroll view. Have the banner appear over the scroll view > a

Re: Animating UIScrollView frame change without moving contents

2014-02-19 Thread Kyle Sluder
On Tue, Feb 18, 2014, at 06:00 PM, Rick Mann wrote: > I tried to set the contentOffset in the same animation block, but that > just makes the content move smoothly. Don't move the scroll view. Have the banner appear over the scroll view and change the scroll view's contentInset instead. > Exacerb

Animating UIScrollView frame change without moving contents

2014-02-18 Thread Rick Mann
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