@interface ObjTest () { NSInteger testValue;}@property (copy, nonatomic) void(^block)();@end@implement ObjTest- (void)function { self.block = ^() { self.testValue =100; };}@end
来源: http://www.bubuko.com/infodetail-1980344.html