Latest 1.1.1
Homepage https://github.com/iodefog/HLAlertCenter
License MIT
Platforms ios 7.0
Authors


弱提示弹框,定时消失。分为只显示一个和队列显示

pod 初始化

pod 'HLAlertCenter'
pod install

代码如下


- (void)postMessage:(NSString *)tip;
- (void)postMessage:(NSString *)tip image:(UIImage *)image;

- (void)postMessage:(NSString *)message origin_y:(float)origin_y;
- (void)postMessage:(NSString *)message image:(UIImage *)image origin_y:(float)origin_y;

使用方式:

typedef enum : NSUInteger {
    HLAlertShowDefault,
    HLAlertShowQueue,
} HLAlertShowType;

    [self postMessage:@"测试测试测试测试测试测试"];
    [self postMessage:@"测试测试测试测试测试测试" image:[UIImage imageNamed:@"SVLoadingView"]];

或者

    [[HLAlertCenter defaultCenter] postAlertWithMessage:@"测试测试测试测试测试测试"];
    [[HLAlertCenter defaultCenter] postAlertWithMessage:@"测试测试测试测试测试测试"  image:[UIImage imageNamed:@"SVLoadingView"]];

效果图如下:
image
image

 [[HLAlertCenter defaultCenter] postMessage:@"测试测试测试测试测试测试" origin_y:0];
 [[HLAlertCenter defaultCenter] postMessage:@"测试测试测试测试测试测试" image:[UIImage imageNamed:@"SVLoadingView"]];

或者

[[HLAlertCenter defaultCenter] postMessage:@"测试测试测试测试测试测试" origin_y:0];
[[HLAlertCenter defaultCenter] postMessage:@"测试测试测试测试测试测试" image:[UIImage imageNamed:@"SVLoadingView"]];

效果图如下:
image
image

Latest podspec

{
    "name": "HLAlertCenter",
    "version": "1.1.1",
    "summary": "u5f31u63d0u793au5f39u6846 HLAlertCenter",
    "description": "u53c2u8003u65e9u671f TKAlertCenteru5f39u6846uff0cu5c01u88c5u81eau5df1u7684u5f31u63d0u793au5f39u6846u3002u53efu8c03u6574u4f4du7f6eu3002u4f7fu7528u7b80u5355",
    "homepage": "https://github.com/iodefog/HLAlertCenter",
    "license": "MIT",
    "authors": {
        "lihongli": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/iodefog/HLAlertCenter.git",
        "tag": "1.1.1"
    },
    "source_files": [
        "Classes",
        "HLAlertCenter/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This