【发布时间】:2010-12-16 01:21:48
【问题描述】:
如果我有以下情况,iOS 上的 NSSearchPathForDirectoriesInDomains 何时会返回 0 路径:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSLog(@"paths: %d", [paths count]);
if ([paths count] > 0)
{
// path exists and is the 1st item in the array
}
else
{
// path doesn't exist. Under what conditions would it not exist?
}
【问题讨论】:
标签: iphone objective-c