これは私の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