How can I break out of two nested for loops in Objective-C?

后端 未结 13 590
梦如初夏
梦如初夏 2020-12-01 00:49

I have two for loops nested like this:

for(...) {
    for(...) {

    }
}

I know that there is a break statement. But I am con

相关标签:
13条回答
  • 2020-12-01 01:25

    If a break is executed from within a set of nested loops, only the innermost loop in which the break is executed is terminated. (Just like standard C)

    0 讨论(0)
提交回复
热议问题