美文网首页
UIImageView.h

UIImageView.h

作者: ShenYj | 来源:发表于2016-08-28 20:36 被阅读32次

#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


相关文章

网友评论

      本文标题:UIImageView.h

      本文链接:https://www.haomeiwen.com/subject/zsqxettx.html