Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shiki/STableViewController
A custom UIViewController with a UITableView which supports "pull to refresh" and "load more"
https://github.com/shiki/STableViewController
Last synced: 3 months ago
JSON representation
A custom UIViewController with a UITableView which supports "pull to refresh" and "load more"
- Host: GitHub
- URL: https://github.com/shiki/STableViewController
- Owner: shiki
- License: mit
- Created: 2011-07-28T07:31:01.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-10T21:15:52.000Z (over 9 years ago)
- Last Synced: 2024-11-01T06:12:20.743Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 223 KB
- Stars: 137
- Watchers: 12
- Forks: 40
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - STableViewController - A custom UIViewController with a UITableView which supports "pull to refresh" and "load more" (etc)
- awesome - STableViewController - A custom UIViewController with a UITableView which supports "pull to refresh" and "load more" (etc)
README
**DEPRECATED: This library is no longer maintained. It has been replaced with the newer [SKStatefulTableViewController](http://github.com/shiki/SKStatefulTableViewController).**
STableViewController
====================================================================================================STableViewController is a custom table view controller that supports **pull-to-refresh** and
**load-more**. It was designed to have views and behaviors that can be easily customized.See the demo project in `Demo/Demo.xcodeproj`.
Usage
----------------------------------------------------------------------------------------------------
To start, simply copy `STableViewController.h` and `STableViewController.m` into your project file.STableViewController is not very useful on its own. It has to be subclassed to apply your custom
views and adjust any behavior. To get started quickly, you may include these files for reference:* `DemoTableViewController` - subclass of `STableViewController`. This declares what views
to use for pull-to-refresh and load-more. Also includes samples on what methods to override
for data loading and a sample customization to interact with the header and footer views
depending on the situation.
* `DemoTableHeaderView` - the view used for pull-to-refresh
* `DemoTableFooterView` - the view used for load-more
You may also opt to implement your own subclass for `STableViewController` and use your own
views for pull-to-refresh and load-more.See `STableViewController.h` for more information on the methods available.