Ios 我可以使用'&燃气轮机=';比较结果?
我想检查NSComparisonResult在Ios 我可以使用'&燃气轮机=';比较结果?,ios,objective-c,Ios,Objective C,我想检查NSComparisonResult在iOS中是否小于或等于 一, 二, NSComparisonResult=blabla。。。; 如果你很小心的话,如果(结果)选项2可能会起作用。不清楚什么是=,因此它很容易混淆。而且对枚举值进行任何假设都是不理想的 备选方案3是一个更好的选择: NSComparisonResult result = ... if (result != NSOrderedDescending) { // It's either ascending or sa
iOS
中是否小于或等于
一,
二,
NSComparisonResult=blabla。。。;
如果你很小心的话,如果(结果)选项2可能会起作用。不清楚什么是=
,因此它很容易混淆。而且对枚举值进行任何假设都是不理想的
备选方案3是一个更好的选择:
NSComparisonResult result = ...
if (result != NSOrderedDescending) {
// It's either ascending or same
}
如果你小心的话,选项2可能会起作用。不清楚什么是=
,因此很容易混淆。而且对枚举
值进行任何假设都是不理想的
备选方案3是一个更好的选择:
NSComparisonResult result = ...
if (result != NSOrderedDescending) {
// It's either ascending or same
}
是的,这是个更好的主意。谢谢。是的,这是个更好的主意。谢谢。
NSComparisonResult result = ...
if (result != NSOrderedDescending) {
// It's either ascending or same
}