iOS8文件路径
iOS8的文件路径有做了一些变动。
之前版本的(比如iOS7)的文件路径如下:
app路径
/var/mobile/Applications/59C84B75-0900-43D6-AD6F-AB9731F064D9/DHD.app/
document路径
/var/mobile/Applications/59C84B75-0900-43D6-AD6F-AB9731F064D9/Documents
IOS8的文件路径(红色部分是新增的)
APP路径:
/private/var/mobile/Containers/Bundle/Application/CF163E1E-7F13-4FBC-945B-62F49FA7AB6A/DHD.app
document路径:
/var/mobile/Containers/Data/Application/3F2BCEE3-0C84-4C5C-BCBF-594F9F96C78D/Documents
app路径可以通过
NSString*sAppPath=[[NSBundlemainBundle]bundlePath];
获得
document路径通过
NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString*sDocPath=[pathsobjectAtIndex:0];
获得
相关推荐
zrtlin 2020-11-09
xuebingnan 2020-11-05
wikiwater 2020-10-27
heheeheh 2020-10-19
Crazyshark 2020-09-15
softwear 2020-08-21
ZGCdemo 2020-08-16
jczwilliam 2020-08-16
littleFatty 2020-08-16
idning 2020-08-03
jinxiutong 2020-07-26
lanzhusiyu 2020-07-19
Skyline 2020-07-04
xiaofanguan 2020-06-25
Aveiox 2020-06-23
dragonzht 2020-06-17