我有这个代码:
NSString *logsPath = [dataDirectoryPath stringByAppendingPathComponent:@"Logs"];
返回:
/var/mobile/Applications/AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA/Documents/Mobile Documents/Data/Logs
但是,这样做:
NSURL *logsURL = [NSURL URLWithString:logsPath];
返回值为 nil。
关于为什么会这样的任何想法?