1
我有一個類象下面這樣:排序映射陣列
@interface GroupStandings : NSObject<EKMappingProtocol>
@property (copy, nonatomic) NSString* groupName;
@property (strong, nonatomic) NSArray* standingList;
@end
,並像一個映射:
+(EKObjectMapping *)objectMapping
{
return [EKObjectMapping mappingForClass:self withBlock:^(EKObjectMapping *mapping) {
[mapping mapKeyPath:@"GroupName" toProperty:@"groupName"];
[mapping hasMany:[StandingsTeam class] forKeyPath:@"StandingList" forProperty:@"standingList"];
}];
}
在StandingsTeam類,我有一個屬性叫做點,我想排序「standList」只要我從對象映射中獲取它。 有沒有辦法做到這一點?
非常感謝。究竟是什麼我無法想象這:) –