Commit Graph

13 Commits

Author SHA1 Message Date
Blake Watters
8670b233e0 Switched retrieval of table views cells during row selection events to lookup by indexPath on the tableView
rather than through table controller plumbing
2012-02-10 16:30:58 -05:00
Blake Watters
5ae15be560 Perform row deselection before processing onSelectCell events as the table may be reloaded/changed by the event and cause a crash during deselection 2012-02-10 16:30:58 -05:00
Jeff Arena
1e43c58039 Fixes for issues identified during static analysis 2012-02-10 16:30:58 -05:00
Jeff Arena
b18479f448 Remove duplicate RKAbstractTableController API, objectAtIndexPath: in favor of the existing objectForRowAtIndexPath: method. Add empty implementation of RKTableView class. Pull in UDTableView implementation into Vendor/ and use as a base class for our new RKTableView class, enabling multiple selection support in pre-iOS 5 tableViews. 2012-02-10 16:30:57 -05:00
Jeff Arena
fdd3f4e1e5 Roll back errant fix for cell reuse issues. 2012-02-10 16:30:57 -05:00
Jeff Arena
d20f44804e Move a few methods from RKTableController to RKAbstractTableController and added their implementations in RKFetchedResultsTableController. Fixed a bug regarding cell reuse in RKFetchedResultsTableController. Added the ability to set the NSFetchRequest on the RKFetchedResultsTableController, instead of requiring that it be looked up in the RKManagedObjectCache via a provided resourcePath. 2012-02-10 16:30:57 -05:00
Greg Combs
a4f685694a Added a delegate method tableControllerDidFinishFinalLoad:
The method name stinks, but we need a callback in didFinishLoad, one that gets called when done loading loading from Core Data, static, or from the network.
2012-02-10 16:30:56 -05:00
Blake Watters
9baed401ca Revert "Added momentary/fixed state for table cell selection, useful for static main menu items."
This reverts commit 635e9820168f73c0c469666f62c3862436d44a32.
2012-02-10 16:30:56 -05:00
Jeff Arena
8ec9ac811e Remove cell param from cellMapping heightOfCellForObjectAtIndexPath block, to avoid issues with and infinite loop. Change a few form methods to comply with tableController nomenclature. Fix broken specs and issues with tableController naming conventions in UI specs. 2012-02-10 16:30:56 -05:00
Jeff Arena
1617dd3ac4 Remove mutual exclusion check between onSelectCell and onSelectCellForObjectAtIndexPath block callbacks 2012-02-10 16:30:56 -05:00
Jeff Arena
9e37304411 Fix issue with cell reuse. Fix issue with cell reuseIdentifier not behaving according to header documentation. Fixed some issues with the tableController specs. Add a cellMapping property to control automatic deselection of a tableView cell 2012-02-10 16:30:55 -05:00
Greg Combs
59d3614ee2 Added momentary/fixed state for table cell selection, useful for static main menu items. 2012-02-10 16:30:55 -05:00
Blake Watters
3d0f0ab39e Introduced the RKTableController component for iOS.
RKTableController provides a flexible, integrated system for driving iOS table views using
the RestKit object mapping engine. Local domain objects can be mapped into table cells within a
collection or presented for editing as part of a form. There are three flavors of table controllers
available:

* Static Tables: RKTableController can be used to render simple static tables that are composed of RKTableItems
presented in RKTableSections. Table items can quickly be built and added to a table without a backing model
or can have content object mapped into them for presentation.
* Network Tables: RKTableController can also render a table with the results of a network load. The typical use
case here is to have RestKit retrieve a JSON/XML payload from your remote system and then render the content into
a table.
* Core Data Tables: RKFetchedResultsTableController can efficiently drive a table view using objects pulled from a
Core Data managed object context. Typical use-cases here are for the presentation of large collections that are
pulled from a remote system, offering offline access, or speeding up a UI by using Core Data as a fast local cache.

RKTableController supports a number of bells and whistles including integrated searching/filtering and pull to refresh.
2012-02-10 16:30:54 -05:00