iOS 自定义弹窗 D3Notice

码农软件 · 软件分类 · 提醒 (Notification) · 2019-05-21 09:57:27

软件介绍

纯代码实现,不需要加图

D3Notice 是用 Swift 写的 iOS 的自定义 AlertView。包括纯文字提示,成功、失败、警告和菊花图。是扩展 UIViewController 的实现。
此处输入图片的描述

使用

在UIViewController

对应上图的功能,直接在UIViewController里使用

clearAllNotice()

showNoticeSuc("suc")

showNoticeSuc("suc", time: D3Notice.longTime, autoClear: false)

showNoticeErr("err")

showNoticeInfo("info")

showNoticeWait()

showNoticeText("text")

不在UIViewController

如果不是在UIViewController,使用方法:

 D3Notice.showNoticeWithText(NoticeType.success, text: "suc",time: D3Notice.longTime, autoClear: true)

Tips

配合本人github项目里的D3View可容易实现弹窗动画

安装使用

使用CocoaPods (iOS 8+, OS X 10.9+)

pod 'D3Notice', '~> 1.0.0' swift调用framework需要import D3Notice

普通使用

只需拖动D3Notice.swift文件

本文地址:https://codercto.com/soft/d/6212.html

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms

Robert Sedgewick、Philippe Flajolet / Addison-Wesley Professional / 1995-12-10 / CAD 67.99

This book is a thorough overview of the primary techniques and models used in the mathematical analysis of algorithms. The first half of the book draws upon classical mathematical material from discre......一起来看看 《An Introduction to the Analysis of Algorithms》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具