ios - What is the correct syntax -


I want to define a block similar to NSArray enumerateObjects: usinglock

My block is as follows < / P>

  typingf zero (^ MyBlock) (BOOL *);  

And I want to open it in a method so that the method will give me the value BOOL

How do I stay from here?

Edit:

I want to do the following

  Something like BOOL;  

[Some of the rules themselves: MyBlock (and some change)]

  if (in some place) {anything} - (zero) some method: ^ zero (bool * stop) {stop = yes; When working with the block, the site is easy to remember and easy:  

The last part you are actually looking for is type (typed):

  typingf zero (^ MyBlock) (id, bool); MyBlock myBlock = ^ (id myId, BOOL myBool) {...};  

PS Note that BOOL is not an object, but an initial type.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -