Re: Why does changing a UIScrollView's contentInset change contentOffset?

2011-11-11 Thread Matt Neuburg
On Thu, 10 Nov 2011 07:48:56 -0800, Matt Neuburg m...@tidbits.com said: On Tue, 08 Nov 2011 12:05:55 -0500, David Hoerl dho...@mac.com said: when I set contentInset that contentOffset was getting set to 0,0. Is this known behavior (or desired behavior?) Don't beat yourself up over this. You

Re: Why does changing a UIScrollView's contentInset change contentOffset?

2011-11-10 Thread Matt Neuburg
On Tue, 08 Nov 2011 12:05:55 -0500, David Hoerl dho...@mac.com said: when I set contentInset that contentOffset was getting set to 0,0. Is this known behavior (or desired behavior?) Don't beat yourself up over this. You figured it out (well done!), the workaround is obvious, and now you can

Why does changing a UIScrollView's contentInset change contentOffset?

2011-11-08 Thread David Hoerl
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