-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathPAAImageView.h
34 lines (25 loc) · 1.01 KB
/
PAAImageView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// PAAImageView.h
// ImageDL
//
// Created by Pierre Abi-aad on 21/03/2014.
// Copyright (c) 2014 Pierre Abi-aad. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol PAAImageViewDelegate <NSObject>
@optional
- (void)paaImageViewDidTapped:(id)view;
@end
@interface PAAImageView : UIView
@property (nonatomic, weak) id<PAAImageViewDelegate> delegate;
@property (nonatomic, assign, getter = isCacheEnabled) BOOL cacheEnabled;
@property (nonatomic, strong) UIImage *placeHolderImage;
@property (nonatomic, strong, readonly) UIImageView *containerImageView;
@property (nonatomic, strong) UIColor *backgroundProgresscolor;
@property (nonatomic, strong) UIColor *progressColor;
- (id)initWithFrame:(CGRect)frame backgroundProgressColor:(UIColor *)backgroundProgresscolor progressColor:(UIColor *)progressColor;
- (void)setImageURL:(NSURL *)URL;
- (void)setImageURL:(NSURL *)URL completion:(void (^)(NSError *error))completionBlock;
- (void)setImage:(UIImage *)image;
- (void)setBackgroundWidth:(CGFloat)width;
@end