Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [indexSet enumerateRangesUsingBlock:^(NSRange range, BOOL * _Nonnull stop) {
- NSLog(@"location is %d, %ld", range.location, range.length);
- }];
- [indexSet enumerateRangesUsingBlock:^(NSRange range, BOOL * _Nonnull stop) {
- array[i] =range.location;
- ++i;
- array[i] =range.length;
- ++i;
- NSLog(@"location is %d, %ld", range.location, range.length);
- }];
Add Comment
Please, Sign In to add comment