Skip to content
daltoniam edited this page Dec 18, 2012 · 3 revisions

Stability: 3 - Stable

Discussion:

GPTableView is a simple UITableView abstraction. It has two main purposes; to make interacting with data from any data source as seamless as possible and removing UITableViewController boilerplate code.

Core Classes: GPTableViewController, GPTableView

Naming is pretty straight forward. GPTableViewController is the UITableViewController abstraction and GPTableView is the UITableView abstraction. Just like with a UITableViewController, GPTableViewController contains a GPTableView. In most use cases, you will end up subclassing GPTableViewController for normal UITableViewController setups.

Accessory Classes: GPDragToRefreshView, GPEmptyTableView, GPTableAccessory, GPTableSearchController

  • GPDragToRefreshView: A simple drag to refresh view as seen in many social networking apps.
  • GPEmptyTableView: A UIView to display when the tableView is empty. GPTableView includes one of these by default (which means so does a GPTableViewController as it has a GPTableView).
  • GPTableAccessory: A class for stylizing a tableView accessory arrow.
  • GPTableSearchController: A subclass of GPTableViewController to setup default search properties.

Support Classes: TableCells and TableItems.

TableCells and TableItems are classes designed to abstract way having to do work with the UITableCells. Items are the objects who's properties you interact with to setup the UITableCell that implement them. Therefore you never have to worry about the UITableCell and only have to interact with the items. GPTableView will figure out what cell it is suppose to use based on the TableItem class.

  • GPTableTextItem: Default item that all other items subclass. Just basic text in a TableCell. The text is not editable.
  • GPTableButtonItem: Item with text and a GPButton. text is not editable.
  • GPTableDeleteItem: ??? Finish me ???
  • GPTableHTMLItem: ??? Finish me ??? For setting html in a TableCell.
  • GPTableImageItem: Item with text and a UIImage. text is not editable.
  • GPTableMessageItem: ??? Finish me ???
  • GPTableMoreItem: Item that has a loading label in a TableCell. Default is a grey spinning load label.
  • GPTablePadItem: ??? Finish me ???
  • GPTableSwitchItem: Item with text and a UISwitch. Text is is not editable.
  • GPTableTextFieldItem: Item with an editable text field.
  • GPTableTextViewItem: ??? Finish me ???
  • GPTableViewItem: ??? Finish me ???
  • GPTableInfoItem: ??? Finish me ???
  • GPTableGroupButtonItem ??? Finish me ???

Code examples:

Here they are!!!

Additional links:

API Reference here.

links to download source code in zip format here.

Clone this wiki locally