Latest 1.0.0
Homepage https://github.com/bingxue314159/TYGPlaceHolderImage
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit
Authors

TYGPlaceholderHelper

借鉴DRImagePlaceholderHelper写的一个placeholderImage工具
使用TYGPlaceholderHelper能让你较方便的生成等待图片,如下:

使用方法

首先,得引用头文件

    #import "TYGPlaceholderHelper.h"

获取一个placeholder image:(100×100)

    UIImage *placeholderImage = [[TYGPlaceholderHelper sharedInstance] placeholderImageWithSize:CGSizeMake(100,100)];

或者 fill a UIImageView

    [imageView fillWithPlaceholderImage]; 

也有选项来定制填充颜色和文本内部的图像,可以看看示例项目以获取更多信息。

Latest podspec

{
    "name": "TYGPlaceHolderImage",
    "version": "1.0.0",
    "summary": "u5febu901fu751fu6210u7b49u5f85u56feu7247.",
    "homepage": "https://github.com/bingxue314159/TYGPlaceHolderImage",
    "license": "MIT",
    "authors": {
        "u8c08u5b87u521a": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/bingxue314159/TYGPlaceHolderImage.git",
        "tag": "1.0.0"
    },
    "source_files": "TYGPlaceHolderImage/Class/*.{h,m}",
    "resources": "TYGPlaceHolderImage/Class/*.png",
    "public_header_files": "TYGPlaceHolderImage/Class/*.h",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This