I am sure I can turn that error off somewhere! Take a look at the following code which throws this error:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSString *databaseName = @"TasksDB.db";
NSArray *documentsDir = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectoryPath = [documentsDir objectAtIndex:0];
databasePath = [documentsDirectoryPath stringByAppendingPathComponent:databaseName];
[self checkAndCreateDatabase];
// Override point for customization after application launch.
return YES;
}
-(void) checkAndCreateDatabase
{
}
The error is thrown that checkAndCreateDatabase is not recognized. This is also because I have not declared the checkAndCreate… method in the interface file and I don’t want to.
Declare it as a private method in the
.mfile: