iphone Programming Glossary: bundlesql
Unable to update database http://stackoverflow.com/questions/7650275/unable-to-update-database stringByAppendingPathComponent @ databasenew.sql if NSFileManager defaultManager fileExistsAtPath sqlFile NSString bundleSql NSBundle mainBundle pathForResource @ databasenew ofType @ sql NSError error nil NSFileManager defaultManager copyItemAtPath.. mainBundle pathForResource @ databasenew ofType @ sql NSError error nil NSFileManager defaultManager copyItemAtPath bundleSql toPath sqlFile error error if error NSLog @ Could not copy json file @ error else NSLog @ yea else NSLog @ transfer complete.. error error if error NSLog @ Could not copy json file @ error else NSLog @ yea else NSLog @ transfer complete NSString bundleSql NSBundle mainBundle pathForResource @ databasenew ofType @ sql databasePath bundleSql self.window.rootViewController self.viewController..
|