Develop
2013.10.01 14:37
[ios] GCD 변수 사용 예제
Views 12158 Comment 0
블럭코드 변수 사용 예제.
@implementation UIImageView (AFNetworkingCustom) - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage gaussianBlur:(BOOL)filter { NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; if(filter){ //가우시안필터 void (^block) (NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image) = ^(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image){ [self setImage:[image imageWithGaussianBlur]]; }; [self setImageWithURLRequest:request placeholderImage:placeholderImage success:block failure:nil]; }else{ [self setImageWithURLRequest:request placeholderImage:placeholderImage success:nil failure:nil]; } } @end
-
[ios] Hybrid 앱 스터디 발표 자료
-
[ios] How To Use UIScrollView to Scroll and Zoom Content (Using Swift)
-
[ios] How To Use UIScrollView to Scroll and Zoom Content (Using Objective-C)
-
[ios] How to set up clang formatter
-
[ios] GPS 이용 상태 확인
-
[ios] GMT Date와 Local Date 변환하기
-
[ios] GCD 변수 사용 예제
-
[ios] FlckrFeed Example App (Swift)
-
[ios] Facebook SDK 로그인 설명
-
[ios] Facebook Cache 갱신하는 함수
-
[ios] DJBros. (DJ요맨~)
-
[ios] Did UIScrollView End Scrolling?