I am using mogenerator.I am getting CoreData error as follows:
Failed to call designated initializer on NSManagedObject class 'ClassName'.
Anybody please help me to solve this error.
Don't alloc / initalise something that you already have a hand on.. that's why !
Example of use in a cellForRowAtIndexPath
Use
ClassName *class = [arrayOfSomething objectAtIndex:indexPath.row];
Instead of
ClassName *class = [ClassName alloc] init];
class = [arrayOfSomething objectAtIndex:indexPath.row]