mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-08 18:02:43 +08:00
Added a new cellMappingForReuseIdentifier convenience method to RKTableViewCellMapping
This commit is contained in:
@@ -99,6 +99,12 @@ typedef void(^RKControlBlockActionBlock)(id sender);
|
||||
return [self mappingForClass:[UITableViewCell class]];
|
||||
}
|
||||
|
||||
+ (id)cellMappingForReuseIdentifier:(NSString *)reuseIdentifier {
|
||||
RKTableViewCellMapping *cellMapping = [self cellMapping];
|
||||
cellMapping.reuseIdentifier = reuseIdentifier;
|
||||
return cellMapping;
|
||||
}
|
||||
|
||||
+ (id)defaultCellMapping {
|
||||
RKTableViewCellMapping *cellMapping = [self cellMapping];
|
||||
[cellMapping addDefaultMappings];
|
||||
|
||||
Reference in New Issue
Block a user