测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布上次发布 | 2017年1月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Aniruddha Das 维护。
它以 Toast 风格显示消息,具有类似 Android 的效果。
1. Target OS: iOS
2. Supported OS Versions: iOS 9.0+
3. Written in: Swift
4. Supports: Swift 3.0
5. IDE: Xcode 8
6. Architectures Supported: armv7, armv7s, arm64
7. Supported devices: iPhone 5s, iPhone6 and above, and all iPads
import UIKit
import ADToast
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
//self.view.makeToast("Hello") //By default, the duration is 3.0 ms and position is bottom
self.view.makeToast("Hello", duration: 5.0, position: .bottom)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
参数