这是我的Exercise
课
@class Question;
@interface Exercise : NSManagedObject
@property (nonatomic, retain) NSNumber * aID;
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSSet *listQuestion;
@end
@interface Exercise (CoreDataGeneratedAccessors)
- (void)addListQuestionObject:(Question *)value;
- (void)removeListQuestionObject:(Question *)value;
- (void)addListQuestion:(NSSet *)values;
- (void)removeListQuestion:(NSSet *)values;
@end
这是Question
上课
@class Exercise;
@interface Question : NSManagedObject
@property (nonatomic, retain) NSNumber * aID;
@property (nonatomic, retain) id jsAnswer;
@property (nonatomic, retain) Exercise *exercise;
@end
这些类是由 coredata 创建的
我如何在每个练习中获取所有Question
对象listQuestion