小编Bha*_*kar的帖子

如何在循环内延迟执行?也许NSTimer?

我正在使用for循环,因为我正在使用else if条件.在其中一个else if我想继续for循环一些延迟.是否可以使用continue语句NSTimer?如果可能,我该如何使用continue语句NSTimer.

for(int i = 0; i<[array count];i++){

    else if (condition)
    {
    }
    else if (condition)
    {
    }
    else if (condition)
    {
    }
    else if (condition)
    {
       // Here I want to continue the for loop with some delay
    }
    else if (conditions)
    {
    }
    else
    {
    }

}
Run Code Online (Sandbox Code Playgroud)

请任何人帮助我

iphone ipad

1
推荐指数
1
解决办法
1974
查看次数

标签 统计

ipad ×1

iphone ×1