Collapsible table sections: a custom section header with a button that shows and hides its rows and updates its own title.
- Custom
UITableViewsection headers with an action button - Showing and hiding the rows in a section by inserting and deleting them
- A button title that changes with the section's state ("Show more" / "Show less")
- A simple, dummy data source that keeps the pattern easy to reuse
Open WidgetSample.xcodeproj in Xcode and run on a simulator. Tap a section's button to expand or collapse it.
Built by Shruthi, iOS developer in Sydney. See my latest apps from Shruezee Studio: Ashtotra (live on the App Store), KindDose and MiniMingle Games.
