Latest 1.0
Homepage https://github.com/Daford/YFToast
License MIT
Platforms ios 7.0, requires ARC
Frameworks QuartzCore
Authors

https://github.com/Daford/YFToast.git

Author: Daford
Date: 2017/1/5

Usage

实例化

1.YFToast *toast = [YFToast makeToast:@"错误的用户名或密码!"];
2.YFToast *toast = [[YFToast alloc] initWithText:@"错误的用户名或密码!"];

位置设置

typedef enum {
    YTTPlaceAtTopZero, // 屏幕顶端
    YTTPlaceAtTop,     // 屏幕顶部
    YTTPlaceAtCenter,  // 屏幕中央
    YTTPlaceAtBottom   // 屏幕底部
} YTTPlace;

e.g. toast.place = YTTPlaceAtTopZero;

时间设置

toast.duration = 3.0;

背景颜色设置

toast.backgroudColor = [UIColor whiteColor];

文本颜色设置

toast.textColor = [UIColor blackColor];

角弧度设置

toast.cornerRadius = 10.0;

边框线宽设置

toast.borderWidth = 1.5;

边框线条颜色设置

toast.borderColor = [UIColor orangeColor];

注意:

当位置为YTTPlaceAtTopZero时,角弧度,边框线条设置无效。

Latest podspec

{
    "name": "YFToast",
    "version": "1.0",
    "summary": "YFToastu53efu81eau5b9au4e49u989cu8272uff0cu8fb9u6846u7ebfu6761uff0cetc.",
    "homepage": "https://github.com/Daford/YFToast",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "Daford": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Daford/YFToast.git",
        "tag": "1.0"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "public_header_files": "Classes/**/*.h",
    "frameworks": "QuartzCore",
    "requires_arc": true
}

Pin It on Pinterest

Share This