Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //In the interface:
  2. @property (strong) void(^myBlock)(id obj, NSUInteger idx, BOOL *stop);
  3. //In the implementation:
  4. [self setMyBlock:^(id obj, NSUInteger idx, BOOL *stop) {
  5.     [self doSomethingWithObj:obj];
  6. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement