+entityForName: could not locate an entity named '*****' in ****
2015-03-26 15:00
483 查看
coreData的教程网上有很多 这里就说一下作为一个初学者 遇到的两大问题
1、+entityForName: could not locate an entity named '*****' in ****这个问题需要你注意一下,
2、
'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name 'CacheModel''
这里是因为你没有实例化这个东西,加上这两句话就可以了
self.appDelegate = [[UIApplication
sharedApplication] delegate];
_managedObjectContext = [self.appDelegate
managedObjectContext];
1、+entityForName: could not locate an entity named '*****' in ****这个问题需要你注意一下,
2、
'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext parameter searching for entity name 'CacheModel''
这里是因为你没有实例化这个东西,加上这两句话就可以了
self.appDelegate = [[UIApplication
sharedApplication] delegate];
_managedObjectContext = [self.appDelegate
managedObjectContext];
相关文章推荐
- coreData +entityForName: could not locate an entity named '*****' in ****
- +entityForName: could not locate an NSManagedObjectModel for entity name
- Could not find a storyboard named 'Main' in bundle NSBundle
- Could not find a storyboard named 'Main' in bundle NSBundle
- 关于myBatis的问题There is no getter for property named 'USER_NAME' in 'class com.bky.model.实例类'
- 关于两个异常Undefined symbols for architecture x86_64和Could not find a nib (load) named 'Main'的解决方案
- 'Could not find a storyboard named 'Main' in bundle NSBundle ***
- A definition for the symbol '<symbolName>' could not be located
- fatal: could not read Username for 'https://github.com': No such file or directo
- The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not refere
- 关于Could not find a storyboard named 'Me' in bundle NSBundle崩溃错误
- Could not find a storyboard named 'Main' in bundle NSBundle
- 【Hibernate错误解决办法】Could not execute JDBC batch update; Data too long for column 'name' at row 1
- The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace
- (xcode5.0 DEV target:iOS5.0) Could not find a storyboard named 'Main' in bundle
- Swift: could not find an overload for '+' that accepts the supplied arguments
- reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
- 'Could not load NIB in bundle: 'NSBundle < /Bundle/Application/ .app> (loaded)' with name 'Car
- [MySQL]IP address '192.168.31.110' could not be resolved: Temporary failure in name resolution
- IP address '172.172.200.88' could not be resolved: Temporary failure in name resolution