Last active
December 10, 2015 15:06
-
-
Save saiday/d54e139a088eb876a878 to your computer and use it in GitHub Desktop.
block example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| __weak typeof(self) weakSelf = self; | |
| [blockExample performComputation:buffer.audioBufferList completionHandler:^(NSArray *fftData, BOOL isEnd) { | |
| weakSelf.fftData = fftData; | |
| ... | |
| }]; | |
| ... | |
| __weak typeof(self) weakSelf = self; | |
| [blockExample fetchImage:url sucess:^(UIImage *image) { | |
| weakSelf.imageView.image = image; | |
| } failure:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment