标签:
测试的方法也很简单:
@property (strong, nonatomic, readonly)CoreDateHelper *coreDataHelper;
ds
- (CoreDateHelper*)cdh { if (debug == 1) { NSLog(@"Running %@ ‘%@‘",self.class, NSStringFromSelector(_cmd)); } if (!_coreDataHelper) { _coreDataHelper = [CoreDateHelper new]; [_coreDataHelper setupCoreData]; } return _coreDataHelper; }
[[self cdh] saveContext];
ddd
1.4.2.5. 测试(Core Data 应用程序实践指南)
标签:
原文地址:http://www.cnblogs.com/SimonGao/p/4930345.html