UIImageView.h


#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


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容