On 19 Feb 2014, at 21:17, Rick Mann <rm...@latencyzero.com> wrote:
> On Feb 19, 2014, at 09:01 , Kyle Sluder <k...@ksluder.com> 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
>> and change the scroll view's contentInset instead.
> 
> 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.

 FWIW, I can tell you it’s possible, we do this in our electronic program guide 
view. We have a “details” area at the top that pops out when you tap a TV show 
in the scroll view, moving down the scroll view, and, when possible, we try to 
avoid scrolling the contents (if the tapped item would end up underneath the 
‘details’ area, we obviously need to scroll it down a little so it stays 
visible).

 What call exactly are you using? I think I may be using 
setContentOffset:animated: (there’s also scrollRectToVisible:animated:), have 
you tried that one? I’ll see if I can look up what we’re doing later when I 
have some code in front of me.

 Did you say you were using layout constraints? This code is older, so I don’t 
think we’re using constraint-based layout there yet.

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de


_______________________________________________

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

Reply via email to