int age = 10;
void (^test)(void) = ^ {
NSLog(@"xxxx, %d", age);
};
id t = (id)(test);
NSLog(@"%@, %@, %@", object_getClass(t), object_getClass(object_getClass(t)), object_getClass(object_getClass(object_getClass(t))));
CGSize size = {20, 30};
打印的结果如下:
2018-06-30 12:50:51.387251+0800 Test[1610:4904089] __NSMallocBlock__, __NSMallocBlock__, NSObject