An example iOS project to show how to load a subset of data in a table view with a "Display More** button loads more data into the table.
This is meant to be very simple. A concrete example of the concept.
Updated for SwiftUI
There are tags for the Objective-C, and Swift versions. See the Requirements section for details
Currently, this is achieved by having a single cell in a second section and loading more data from there.
- Daniel Thorpe for building on my idea.
- Pete Callaway for gentle nudging.
- The usual Twitter mob for looking at this.
- iOS 13
- Xcode 11+
This uses SwiftUI for the interface. To see live previews in Xcode you need to be running macOS Catalina.
- iOS 12
- Xcode 10.2
- iOS 12
- Xcode 10
- iOS 11
- Xcode 9
This uses the new iOS 11 UITableViewMethod performBatchUpdates
to update the tableview.
- iOS 10
- Xcode 9
This rewrites in this version are more than just updating to the new Swift version, but also because I'm a better developer now than I was when I started this project and I do things a little differently now.
- iOS 10+
- Xcode 8
- iOS 9.0+
- Xcode 7.3
- iOS 9.0+
- Xcode 7.0
- iOS 8.1+
- Xcode 6.3