以下语句适用于xcode 4.6以及是否执行了块
if (![fileManager fileExistsAtPath:FolderPath isDirectory:&isDirectory] && isDirectory)
但是在xcode 5中,它返回false并且正在进入其他地方。在我将两个条件都放入()后,它确实按预期工作。实际上这是一个愚蠢的错误,也就是它之前应该如何,但不知何故xcode 4.6给出了真实。
正确陈述:if (!([fileManager fileExistsAtPath:FolderPath isDirectory:&isDirectory] && isDirectory))
有关为什么Xcode 4.6和5中的这种行为差异的想法?