You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

31 lines
911 B

//
// TYDrawImageStorage.h
// TYAttributedLabelDemo
//
// Created by tanyang on 15/4/8.
// Copyright (c) 2015年 tanyang. All rights reserved.
//
#import "TYDrawStorage.h"
typedef enum : NSUInteger {
TYImageAlignmentCenter, // 图片居中
TYImageAlignmentLeft, // 图片左对齐
TYImageAlignmentRight, // 图片右对齐
TYImageAlignmentFill // 图片拉伸填充
} TYImageAlignment;
@interface TYImageStorage : TYDrawStorage<TYViewStorageProtocol>
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, strong) NSString *imageName;
@property (nonatomic, strong) NSURL *imageURL;
@property (nonatomic, strong) NSString *placeholdImageName;
@property (nonatomic, assign) TYImageAlignment imageAlignment; // default center
@property (nonatomic, assign) BOOL cacheImageOnMemory; // default NO ,if YES can improve performance,but increase memory
@end