我从Xcode 7.2更新了Xcode 7.3
在Xcode 7.2中,视图调试器运行良好.
但是,在Xcode 7.3中,当我尝试使用它时,视图调试器不会显示任何视图.
如果我单击"调试视图层次结构"按钮,则视图是干净的.
我想知道特定目录的任何更改文件。所以,我想出了 ReadDirectoryChangesW() 和 FindFirstChangeNotification() - FindNextChangeNotification() API。
然后,我使用 ReadDirectoryChangesW() 函数实现。但是,我不知道为什么会有 FindFirst...blabla API。我认为 ReadDirectoryChangesW() 函数可以完成 FindFirst... API 的所有工作。
有什么不同?
我想检查NSComparisonResult是否小于或等于iOS.
1.
NSComparisonResult result = blabla...;
if (result == NSOrderedAscending || result == NSOrderedSame) {...}
Run Code Online (Sandbox Code Playgroud)
2.
NSComparisonResult result = blabla...;
if (result <= NSOrderedSame) {...}
Run Code Online (Sandbox Code Playgroud)
我可以使用选项1,但是,我可以使用选项2吗?我设计它是因为NSComparisonResult它只是NSInteger; NSOrderedSame是0,NSOrderedAscending是-1,NSOrderedDescending是1.