微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

JRToast iOS 消息提示

程序名称:JRToast

JRToast 介绍

JRToast, 类似于安卓Toast的一种提示效果, 继续操作不需要等待其消失。

在需要使用JRToast的控制器中 #import “JRToast.h”

- (IBAction)defaultToast:(UIButton *)sender
{
    [JRToast showWithText:@"默认持续2秒,在屏幕中间"];
}

- (IBAction)durationToast:(UIButton *)sender
{
    [JRToast showWithText:@"持续3秒,在屏幕中间" duration:3.0f];
}

- (IBAction)topOffsetToast:(UIButton *)sender
{
    [JRToast showWithText:@"距离顶部50" topOffset:50.0f];
}

- (IBAction)topOffsetAndDuration:(UIButton *)sender
{
    [JRToast showWithText:@"距离顶部100,持续3秒" topOffset:100.0f duration:3.0f];
}

- (IBAction)bottomToast:(UIButton *)sender
{
    [JRToast showWithText:@"距离底部50" bottomOffset:50.0f];
}

- (IBAction)bottomAndDuration:(UIButton *)sender
{
    [JRToast showWithText:@"距离底部100,持续3秒" bottomOffset:100.0f duration:3.0f];
}

JRToast 官网

https://github.com/zhanjiarong/JRToast

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐