objective-c - typedef void (^BWStatusBarBasicBlock)(void);类型说明作用?
天蓬老师
天蓬老师 2017-04-21 11:16:31
0
1
837

typedef void (^BWStatusBarBasicBlock)(void); xcode中这个类型说明有说明作用?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
小葫芦

The questioner must be asking about https://github.com/brunow/BWStatusBar...

in this project
typedef 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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template