Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例子
for(id obj in [self getObjectsSorted]) { ... }
[self getObjectsSorted] 会被调用一次还是每次迭代?
快速枚举将您的计数器和对象转换为不可变常量。和start和end循环计数器立即固定。你不能改变它们。
start
end
通过检查断点,它似乎只被调用一次。