NSArray<NSArray<NSString *> *> *items = @[@[@"1",@"2"], @[@"3",@"4"], @[@"5",@"6"]];
for (NSArray<NSString *> *array in items) {
for (NSString *item in array) {
NSLog(@"%@", item);
if ([item intValue] == 3) {
// 跳出外层循环
goto finally;
}
}
}
finally: {
NSLog(@"goto label.");
}
网友评论