LoginSignup
0
0

More than 5 years have passed since last update.

ブロックの中では continue ステートメントは使えない.

Last updated at Posted at 2013-11-04

for in 文の中でcontinue文を使うことはできますが、 blockで囲ってしまうとビルドエラーになります。

    for (NSNumber *num in @[@1,@2,@3,@4]) {
        continue;
        dispatch_async(dispatch_get_main_queue(),^{
            continue; // これが原因でビルドエラー (continue statement not in loop statement)
        });
    }
0
0
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0