int (^sunBlock)(int, int) = ^(int a, int b){ return a + b; }; NSLog(@"%d",sunBlock(7,8));
@protocol myDelegate <NSObject> -(void)test; @end @interface ViewController () @property (nonatomic,weak) id <myDelegate> delegate; @end
int (^sunBlock)(int, int) = ^(int a, int b){ return a + b; }; NSLog(@"%d",sunBlock(7,8));
@protocol myDelegate <NSObject> -(void)test; @end @interface ViewController () @property (nonatomic,weak) id <myDelegate> delegate; @end