The database has been added to the Resources group, after the release of the Document can not see the database is how is it?
Reply:
Files in the bundle, you can call that, if need to write, you can copy to the Document
Reply:
It is hoped in the Document, how to do it?
Reply:
Document Path: NSString * document = [NSHomeDirectory () stringByAppendingPathComponent: @ "Documents"];
Create a SQL file path: NSString * sqlFile = [document stringByAppendingPathComponent: @ "my.sqlite"];
Copy: NSString * sqlRes = [NSBundle mainBundle] pathForResource: @ "my" ofType: @ "sqlite"];
NSFileManager * fileManager = [NSFileManager defaultManager];
[FileManager copyItemAtPath: oldFile toPath: newFile error: nil];
This is your place in advance of the bundle.
If you want to put the outset Document, you use iTunes ah, iTools ah what tools drag and drop files directly into the well.
Reply:
Generally present in the document is created, you can also be stored in the project path of the Resouse file path settings it.
Reply:
On the document can be downloaded in the way, put your files on the server, and then download it themselves define the path, you can download the document below it. You can also ITUNES or 91 and a series of software directly into your document next. It can also be packaged into your resource folder, and then run the program copied to your document below. As mentioned 3rd floor. Mainly to see why you want to put that folder, put there what to do, and so should be revised. It is working, I can QQ 359460138
No comments:
Post a Comment