• 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
Why does changing a UIScrollView's contentInset change contentOffset?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSFileHandle readInBackground vs threading?
  • Next by Date: Re: Allocating too much memory kills my App rather than returning NULL
  • Previous by thread: Re: NSFileHandle readInBackground vs threading?
  • Next by thread: ObjC's flat and all-exported namespace, help!
  • Index(es):
    • Date
    • Thread