Guest User

Untitled

a guest
Apr 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. [indexSet enumerateRangesUsingBlock:^(NSRange range, BOOL * _Nonnull stop) {
  2. NSLog(@"location is %d, %ld", range.location, range.length);
  3. }];
  4.  
  5. [indexSet enumerateRangesUsingBlock:^(NSRange range, BOOL * _Nonnull stop) {
  6.  
  7. array[i] =range.location;
  8. ++i;
  9. array[i] =range.length;
  10. ++i;
  11.  
  12. NSLog(@"location is %d, %ld", range.location, range.length);
  13. }];
Add Comment
Please, Sign In to add comment