Why does changing a UIScrollView's contentInset change contentOffset?
Why does changing a UIScrollView's contentInset change contentOffset?
- Subject: Why does changing a UIScrollView's contentInset change contentOffset?
- From: David Hoerl <email@hidden>
- Date: Tue, 08 Nov 2011 12:05:55 -0500
I just had a lovely time trying to figure out why my UITableView was
snapping back to 0,0 when the keyboard was going away.
In the end I had recently modified my code to use contentInset (and
scrollIndicatorInsets) when the keyboard was visible.
Using lldb with a breakpoint on setContentOffset, I was finally able to
see that when I set "contentInset" that contentOffset was getting set to
0,0.
Is this known behavior (or desired behavior?) I'm using Xcode 4.2 with a
deployment target of 4.3.
David
_______________________________________________
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