typedef void (^BWStatusBarBasicBlock)(void);
xcode中这个类型说明有说明作用?
高洛峰2017-04-21 11:18:31
The questioner must be asking about https://github.com/brunow/BWStatusBar...
in this projecttypedef void (^BWStatusBarBasicBlock)(void);
In fact, it typedefs a block whose parameter is void and whose return type is void.
In other words, when using the void (^)(void) type, you can use BWStatusBarBasicBlock instead. This is no different from typedef int myint, except that the defined type is changed to block.