BLOCK代码块
OC 写法:-(NSInteger)subtract:(NSInteger)paramValue from:(NSInteger)paranFrom{return paramFrom - paramValue;}C写法:NSInteger subtract(NSInteger paramValue,NSInteger paramFrom){return paramFrom - paramValue;www.zzzyk.com}Block Object 写法:NSInteger(^subtract)(NSInteger,NSInteger) = ^(NSInteger paramValue,NSInteger paramFrom){return paramFrom - paramValue;};这样的比较很容易的看出来block和oc的区别了。独立Block Object最简单的形式:void (^易做图Block)(void) = ^{/*Implement the block object here*/}
补充:移动开发 , IOS ,