what is the correct way of initilizing a class inheriting from NSManagedObject?
give me some code for it..
There are two way inheriting from NSManagedObject!!!
Car *car = [[Car alloc] initWithEntity:[NSEntityDescription entityForName:@"Car" inManagedObjectContext:self.managedObjectContext] insertIntoManagedObjectContext:self.managedObjectContext];
Car *car = [NSEntityDescription insertEntityWithName@"Car" inManagedObjectContext
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.