Detect real end of the for () loop in objective-c

后端 未结 3 1242
不知归路
不知归路 2021-01-27 09:16

I\'m going to show in my app a sort of UIActivityIndicatorView while parsing several JSON objects, inside a for () loop. I can\'t figure WHERE I must place the [UIActivityIndica

3条回答
  •  感情败类
    2021-01-27 09:51

    I would generally say that if you are unable to determine where a loop ends in your code that's an indication your code is to convoluted. Your for-loop ends just before the else statement I think. To find out you can simply click the starting bracket and XCode (if that's what you're using) will highlight the code-block...

提交回复
热议问题