-[UITable indexPathsForRowsInRect:] returning bogus paths?
-[UITable indexPathsForRowsInRect:] returning bogus paths?
- Subject: -[UITable indexPathsForRowsInRect:] returning bogus paths?
- From: Rick Mann <email@hidden>
- Date: Thu, 18 Aug 2011 14:38:35 -0700
Xcode 3.2.6, iOS 4.3 (8F190 simulator)
I'm calling -indexPathsForRowsInRect:, which always works correctly if the table isn't scrolled. But if the table is scrolled, and the supplied CGRect is not necessarily over a row in the table. I still get back what appears to be a valid array with a single NSIndexPath, with section and row of 0, 0.
But when I ask the table for the cell at that path, I get back nil (even though I know there's a cell there).
Is there something about that path that identifies it as bad? I don't see anything in its structure in the debugger.
thanks,
--
Rick
_______________________________________________
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