Commit cffcbcd7c1fae126496969f0fa7ee06e1fc39870
1 parent
95fe4442
添加图片占位图 添加部分app属性宏
Showing
6 changed files
with
68 additions
and
1 deletions
DSBaseModuleF.podspec
DSBaseModuleF/Frameworks/DSBaseModule.framework/DSBaseModule
No preview for this file type
DSBaseModuleF/Frameworks/DSBaseModule.framework/DSBaseModule.bundle/DS_placeholder.png
0 → 100644
4.37 KB
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/DSBaseModuleMacro.h
| ... | ... | @@ -18,6 +18,13 @@ |
| 18 | 18 | #import <fcntl.h> |
| 19 | 19 | #import <unistd.h> |
| 20 | 20 | |
| 21 | +#pragma mark - APP属性 | |
| 22 | + | |
| 23 | +#define DS_APP_DISPLAYNAME [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"] | |
| 24 | +#define DS_APP_BUNDLEID [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] | |
| 25 | +#define DS_APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] | |
| 26 | +#define DS_APP_BUILD [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"] | |
| 27 | + | |
| 21 | 28 | #pragma mark - 当前窗口 |
| 22 | 29 | |
| 23 | 30 | #define DS_APP_KEY_WINDOW [[[UIApplication sharedApplication] delegate] window] | ... | ... |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Headers/UIImage+DSBaseModule.h
| ... | ... | @@ -10,6 +10,66 @@ |
| 10 | 10 | |
| 11 | 11 | @interface UIImage (DSBaseModule) |
| 12 | 12 | |
| 13 | +#pragma mark - 占位图 | |
| 14 | + | |
| 15 | +/// 获取纯色的占位图 | |
| 16 | ++(UIImage*)getColorPlaceholderImage; | |
| 17 | + | |
| 18 | +/** | |
| 19 | + 获取1*1的占位图 | |
| 20 | + | |
| 21 | + @return 1*1的占位图 | |
| 22 | + */ | |
| 23 | ++(UIImage*)get1_1PlaceholderImage; | |
| 24 | + | |
| 25 | +/** | |
| 26 | + 获取2*1的占位图 | |
| 27 | + | |
| 28 | + @return 2*1的占位图 | |
| 29 | + */ | |
| 30 | ++(UIImage*)get2_1PlaceholderImage; | |
| 31 | + | |
| 32 | +/** | |
| 33 | + 获取3*1的占位图 | |
| 34 | + | |
| 35 | + @return 3*1的占位图 | |
| 36 | + */ | |
| 37 | ++(UIImage*)get3_1PlaceholderImage; | |
| 38 | + | |
| 39 | +/** | |
| 40 | + 获取3*2的占位图 | |
| 41 | + | |
| 42 | + @return 3*2的占位图 | |
| 43 | + */ | |
| 44 | ++(UIImage*)get3_2PlaceholderImage; | |
| 45 | + | |
| 46 | +/** | |
| 47 | + 获取2:3的占位图 | |
| 48 | + | |
| 49 | + @return 2:3的占位图 | |
| 50 | + */ | |
| 51 | ++(UIImage*)get2_3PlaceholderImage; | |
| 52 | + | |
| 53 | +/** | |
| 54 | + 获取1*3的占位图 | |
| 55 | + | |
| 56 | + @return 1*3的占位图 | |
| 57 | + */ | |
| 58 | ++(UIImage*)get1_3PlaceholderImage; | |
| 59 | + | |
| 60 | +/** | |
| 61 | + 获取1:2的占位图 | |
| 62 | + | |
| 63 | + @return 1:2的占位图 | |
| 64 | + */ | |
| 65 | ++(UIImage*)get1_2PlaceholderImage; | |
| 66 | + | |
| 67 | +#pragma mark - 获取图片 | |
| 68 | + | |
| 69 | +/// DSBaseModule获取图片 | |
| 70 | +/// @param imageName 图片名称 | |
| 71 | ++(UIImage*)imageWithDSBaseModuleImageName:(NSString*)imageName; | |
| 72 | + | |
| 13 | 73 | #pragma mark - 图片调整方向 |
| 14 | 74 | |
| 15 | 75 | /** | ... | ... |
DSBaseModuleF/Frameworks/DSBaseModule.framework/Info.plist
No preview for this file type