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

The Tangled Web

The Tangled Web

Michal Zalewski / No Starch Press / 2011-11-26 / USD 49.95

"Thorough and comprehensive coverage from one of the foremost experts in browser security." -Tavis Ormandy, Google Inc. Modern web applications are built on a tangle of technologies that have been de......一起来看看 《The Tangled Web》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具