JRToast iOS 消息提示

程序名称:JRToast

授权协议: Apache

操作系统: iOS

开发语言: Objective-C

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

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...