Files
2021-02-07 11:24:08 +08:00

32 lines
911 B
Objective-C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// 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 performancebut increase memory
@end