Contents

Develop
2014.11.21 14:41

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

조회 수 825 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
- (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();
        });
    });
}

?

  1. [android] 가속도 센서를 이용한 흔듦(Shake) 감지

    Date2014.11.04 CategoryDevelop Byhooni Views1898
    Read More
  2. [ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기

    Date2014.11.19 CategoryDevelop Byhooni Views1556
    Read More
  3. [ios] 비동기 블럭 코드 예제

    Date2014.11.21 CategoryDevelop Byhooni Views825
    Read More
  4. [svn] SVN trunk 변경사항 되돌리기 (SVN Rollback)

    Date2014.11.27 CategorySystem/OS Byhooni Views1564
    Read More
  5. [svn] Can't convert string from native encoding to 'UTF-8' 메시지가 나오는 경우

    Date2014.12.18 CategorySystem/OS Byhooni Views993
    Read More
  6. iptime 공유기 해킹 기술문서

    Date2015.01.01 CategorySystem/OS Byhooni Views1941
    Read More
  7. ZBar 라이브러리를 이용한 바코드 스캔 앱 개발하기

    Date2015.01.01 CategoryDevelop Byhooni Views1629
    Read More
  8. [svn] 하나의 SVN에서 멀티 저장소 (One svnserve, multiple repositories)

    Date2015.01.02 CategorySystem/OS Byhooni Views1549
    Read More
  9. [java] netty (비동기 이벤트 방식 네트워크 프레임워크) 사용법 #1 (server)

    Date2015.01.02 CategoryDevelop Byhooni Views2214
    Read More
  10. [java] netty (비동기 이벤트 방식 네트워크 프레임워크) 사용법 #2 (client)

    Date2015.01.02 CategoryDevelop Byhooni Views2043
    Read More
  11. CentOS 에서 Cacti 설치하기

    Date2015.01.02 CategorySystem/OS Byhooni Views1768
    Read More
  12. [android] 안드로이드 동영상 스트리밍 예제

    Date2015.01.02 CategoryDevelop Byhooni Views4819
    Read More
Board Pagination Prev 1 ... 72 73 74 75 76 77 78 79 80 81 ... 98 Next
/ 98