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

Introduction to Semi-Supervised Learning

Introduction to Semi-Supervised Learning

Xiaojin Zhu、Andrew B. Goldberg / Morgan and Claypool Publishers / 2009-6-29 / USD 40.00

Semi-supervised learning is a learning paradigm concerned with the study of how computers and natural systems such as humans learn in the presence of both labeled and unlabeled data. Traditionally, le......一起来看看 《Introduction to Semi-Supervised Learning》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器