I have implemented coredata in my app.
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *documentsDirectory = [self applicationDocumentsDirectory];
NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"iBountyHunter.sqlite"];
This gives me error -[NSURL stringByAppendingPathComponent:]: unrecognized selector sent to instance 0x4d394a0′
I tried to find solution, but could not find perfect solution.
How to solve this?
Thanks in advance.
Sanna is Correct..
Try this code.