I would like to wait this code to be executed before to continue but as these blocks are called assynchronously I don\'t know how to do???
NSURL *asseturl; N
The easiest thing to do is to move your code to inside (at the end of) the resultBlock or the failureBlock. That way, your code will run in the correct order, and you will also retain asynchronous behaviour.
resultBlock
failureBlock