Database keeps copying to device
My app creates a database on the phone, so that the next time it opens it loads fast. But for some reason it keeps copying the database each time it opens. Here is the check that i place in the appdelegate.m. Should I have something that says if it does not need importing, instead of just the else?
// If need import data open the splash screen with the indicator
// If data was created open the navigation controller with the first screen
if ([[Database shared] needImport]) {
[window addSubview:viewController.view];
} else {
//i'm wondering if I am missing something here?
[window addSubview:navigationController.view];
}
Last edited by Fedcis09; 09-12-2010 at 06:01 PM.
|