mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-28 16:05:44 +08:00
Eliminated block setter methods necessary due to strange library linkage dependencies in GateGuru
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
/** @name Cell Mapping Block Callbacks **/
|
||||
|
||||
typedef void(^RKTableViewCellForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath* indexPath);
|
||||
typedef void(^RKTableViewCellForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath *indexPath);
|
||||
typedef CGFloat(^RKTableViewHeightOfCellForObjectAtIndexPathBlock)(id object, NSIndexPath *indexPath);
|
||||
typedef void(^RKTableViewAccessoryButtonTappedForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath *indexPath);
|
||||
typedef NSString*(^RKTableViewTitleForDeleteButtonForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath *indexPath);
|
||||
@@ -82,6 +82,17 @@ typedef void(^RKTableViewCellBlock)(UITableViewCell *cell);
|
||||
*/
|
||||
@property (nonatomic, retain) NSString* reuseIdentifier;
|
||||
|
||||
/**
|
||||
A Boolean value that determines whether the cell mapping manages basic cell
|
||||
attributes (accessoryType, selectionStyle, etc.) or defers to a Storyboard/XIB
|
||||
for defining basic cell attributes.
|
||||
|
||||
Setting the accessoryType or selectionStyle will set the value to YES.
|
||||
|
||||
**Default**: NO
|
||||
*/
|
||||
@property (nonatomic, assign) BOOL managesCellAttributes;
|
||||
|
||||
/**
|
||||
The cell style to use for cells created with this mapping
|
||||
|
||||
@@ -185,14 +196,20 @@ typedef void(^RKTableViewCellBlock)(UITableViewCell *cell);
|
||||
*/
|
||||
+ (id)cellMapping;
|
||||
|
||||
/**
|
||||
Creates and returns an RKTableCellMapping instance configured with the default cell mappings.
|
||||
|
||||
@return An RKTableCellMapping instance with default mappings applied.
|
||||
@see [RKTableCellMapping addDefaultMappings]
|
||||
*/
|
||||
+ (id)defaultCellMapping;
|
||||
|
||||
/**
|
||||
Returns a new auto-released object mapping targeting UITableViewCell. The mapping
|
||||
will be yielded to the block for configuration.
|
||||
*/
|
||||
+ (id)cellMappingUsingBlock:(void (^)(RKTableViewCellMapping *cellMapping))block;
|
||||
|
||||
// TODO: Needs NIB support...
|
||||
|
||||
/**
|
||||
Sets up default mappings connecting common properties to their UITableViewCell counterparts as follows:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user