#import <Foundation/Foundation.h>
#import <UIKit/UIView.h>
#import <UIKit/UIKitDefines.h>
@class UIImage;
NS_CLASS_AVAILABLE_IOS(2_0) @interface UIImageView : UIView {
@private
id _storage;
}
- (id)initWithImage:(UIImage *)image; // 初始化一个带图片的view
- (id)initWithImage:(UIImage *)image highlightedImage:(UIImage *)highlightedImage NS_AVAILABLE_IOS(3_0);
@property(nonatomic,retain) UIImage *image; //
@property(nonatomic,retain) UIImage *highlightedImage NS_AVAILABLE_IOS(3_0);
@property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled;
@property(nonatomic,getter=isHighlighted) BOOL highlighted NS_AVAILABLE_IOS(3_0);
@property(nonatomic,copy) NSArray *animationImages; // 需要动画的图片,单张图片组合成的;
@property(nonatomic,copy) NSArray *highlightedAnimationImages NS_AVAILABLE_IOS(3_0);
@property(nonatomic) NSTimeInterval animationDuration; // 动画时间
@property(nonatomic) NSInteger animationRepeatCount; // 重复次数
@property (nonatomic, retain) UIColor *tintColor NS_AVAILABLE_IOS(7_0);
- (void)startAnimating;
- (void)stopAnimating;
- (BOOL)isAnimating;
@end
网友评论