Problem with collapsing sections in UITableView
Problem with collapsing sections in UITableView
- Subject: Problem with collapsing sections in UITableView
- From: Jim Geist <email@hidden>
- Date: Thu, 23 Apr 2015 18:02:11 -0700
Hi all -
I have an app that displays several screens with a ton of user-generated
data, and at the advice of a UI designer I'm thinking of putting the data
into sections that I can collapse if the section has no data. I have a
really simple implementation mocked up: a table view with one cell per
section. The cell is custom and has controls set up with auto layout to
show the appropriate data. There's also a custom section header cell, with
a button that expands and collapses the section by inserting or deleting
that section's data cell, which animates smoothly using the normal insert
or delete anims.
This all works great except for one thing I can't figure out. My mockup has
two sections, and when I collapse the top section, the custom section
header cell for the second section disappears and never comes back. I've
looked in the UI debugger and the view is just gone.
Anyone have any ideas? (Or a simpler way to accomplish what I'm trying to
do?)
Thanks in advance!
_______________________________________________
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