Added a new cellMappingForReuseIdentifier convenience method to RKTableViewCellMapping

This commit is contained in:
Jawwad Ahmad
2012-03-15 12:24:25 -04:00
parent 9732ffa257
commit 3f29ccd42b
2 changed files with 11 additions and 0 deletions

View File

@@ -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];