search

Home  >  Q&A  >  body text

objective-c - typedef void (^BWStatusBarBasicBlock)(void);类型说明作用?

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

天蓬老师天蓬老师2769 days ago823

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-21 11:18:31

    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.

    reply
    0
  • Cancelreply