开发者

how to know the path of file in iphone sdk?

开发者 https://www.devze.com 2023-01-13 04:16 出处:网络
i want to connect database to iphone sdk but it is taking the default path inside the system folders but not in the app bundle ?how can i change the file path from that system directory to f开发者_C百

i want to connect database to iphone sdk but it is taking the default path inside the system folders but not in the app bundle ?how can i change the file path from that system directory to f开发者_C百科ile in my app bundle?


This should retrive your app's document folder path :

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
0

精彩评论

暂无评论...
验证码 换一张
取 消