• 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
Problem with collapsing sections in UITableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Crash at iOS App Startup - What Could Have Gone Wrong?
  • Next by Date: Window Size and Location
  • Previous by thread: Re: Linking to MLMediaSourcePhotosIdentifier
  • Next by thread: Window Size and Location
  • Index(es):
    • Date
    • Thread