이것은 xCode Editor에 의해 자동 생성 된 코어 데이터 용 내 GeneratedCode입니다.코어 데이터의 많은 관계로
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class Building, Category, City, District, Image, LatitudeLongitude, OpeningHour, Promotion, Rating, Review, URL;
@interface Business : NSManagedObject {
@private
}
@property (nonatomic, retain) NSString * Website;
@property (nonatomic, retain) NSString * Email;
@property (nonatomic, retain) NSString * Street;
@property (nonatomic, retain) NSString * InBuildingAddress;
@property (nonatomic, retain) NSString * Phone;
@property (nonatomic, retain) NSString * Title;
@property (nonatomic, retain) NSString * Zip;
@property (nonatomic, retain) NSNumber * Price;
@property (nonatomic, retain) NSSet* Promotions;
@property (nonatomic, retain) Building * Building;
@property (nonatomic, retain) NSSet* Categories;
@property (nonatomic, retain) LatitudeLongitude * LatitudeLongitude;
@property (nonatomic, retain) NSSet* Images;
@property (nonatomic, retain) OpeningHour * OpeningHour;
@property (nonatomic, retain) NSSet* Reviews;
@property (nonatomic, retain) NSSet* URLs;
@property (nonatomic, retain) Rating * Rating;
@property (nonatomic, retain) NSSet* Districts;
@property (nonatomic, retain) City * City;
//이 3 줄을 추가했는데 왜 자동으로 생성 된 코드입니까?
- (void)addDistrictsObject:(District *)value;
- (void)addCategoriesObject:(Category *)value;
- (void)addReviewsObject:(Review *)value;
@end
모든 리뷰와 이미지를 "정리"하고 싶습니다.
self.Reviews = nil이 트릭을 수행합니까?
나는 self.LatitudeLongitude = nil을하는 것이 자기와 LatitutudeLongitude 사이의 관계를 삭제한다는 것을 안다.