mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-06 17:32:52 +08:00
Add count method to RKMappingResult
This commit is contained in:
@@ -106,4 +106,9 @@
|
||||
return [NSString stringWithFormat:@"<%@: %p, results=%@>", NSStringFromClass([self class]), self, self.keyPathToMappedObjects];
|
||||
}
|
||||
|
||||
- (NSUInteger)count
|
||||
{
|
||||
return [[self asCollection] count];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user