Contents

Develop
2014.11.21 14:41

[ios] 비동기 블럭 코드 예제

Views 907 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
- (void)loadThumbnailImage:(void (^)())completionBlock {
    dispatch_queue_t fetchQ = dispatch_queue_create("ConfigureCell", NULL);
    dispatch_async(fetchQ, ^{
        NSURL *address = [NSURL URLWithString:self.smallPictureURl];
        UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:address]];
        dispatch_async(dispatch_get_main_queue(), ^{
            self.thumbnailImage = image;
            completionBlock();
        });
    });
}

?

List of Articles
No. Category Subject Author Date Views
169 Develop [coding] 공부해야 하는거 ㅋㅋ secret hooni 2017.06.27 0
168 Develop [coding] Find all anagrams in a string hooni 2017.06.27 1306
167 Develop [chm] 윈도우즈에서 디버깅 기법(Debugging Applications) file hooni 2013.04.23 7553
166 Develop [chm] 비주얼 C++ 팁 모음 문서 file hooni 2013.04.23 7522
165 Develop [chm] Programming Applications for Microsoft Windows file hooni 2013.04.23 7287
164 Develop [chm] C++ 문법 가이드 file hooni 2013.04.23 7971
163 Develop [c/c++] Makefile 사용하기.. ㅋㅋ hooni 2003.04.23 7392
162 Develop [c++]현승이가 보내준 암호화 모듈 AES라인델.. file hooni 2003.04.23 10745
161 Develop [c++]현승이가 보내준 동영상 암호화 자료.. 볼것.. file hooni 2003.04.23 9759
160 Develop [c++][mfc] 파일 입출력 샘플 (한줄씩 읽어서 다른 파일에 쓰기) hooni 2013.04.23 15064
159 Develop [c++] 현승이가 준 메신저 소스.. ㅋㅋ file hooni 2013.04.23 8301
158 Develop [c++] 현승이가 준 P2P 프로그램 소스 ㅋㅋ file hooni 2013.04.23 12107
Board Pagination Prev 1 ... 52 53 54 55 56 57 58 59 60 61 ... 71 Next
/ 71