I have a method that creates a block inside. Is it possible to return the result of the method from this block? Something like:
- (id)myFunction {
//some code here
BlockType myBlock = ^{
//some other code here
return someObject; //is it possible to return something for myFunction?
};
[someOtherObject methodWithBlock: myBlock];
}