Develop
2014.11.21 14:41
[ios] 비동기 블럭 코드 예제
조회 수 827 댓글 0
- (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(); }); }); }
-
[ios] Crashlytics, Fabfic 설치/설정
-
캘리포니아 운전면허 족보
-
[ios][swift] 초간단 TableView 샘플
-
[ios] 앱에서 설정화면 호출하기
-
리팩토링 계획안
-
[c] 파일명 또는 특정 패턴을 적용
-
[Android Error] The number of method references in a .dex file cannot exceed 64K
-
[linux] CentOS Apache 웹서버에 HTTPS 적용
-
[io] Apple Watch, Today Extension 앱ID 설정
-
[js] e.stopPropagation() VS e.preventDefault ()
-
[c] 기막힌 정렬 코드 ㅋㄷ
-
[android] 초간단 얼럿 (AlertDialog)