TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2015 |
SPMSupports SPM | ✗ |
Maintained by okmr-d.
Simple Alert View written in Swift, which can be used as a UIAlertController replacement.
It supports from iOS7! It is simple and easily customizable!
DOAlertController can be used as a UIAlertController
.
// Set title, message and alert style
let alertController = DOAlertController(title: "title", message: "message", preferredStyle: .Alert)
// Create the action.
let cancelAction = DOAlertAction(title: "OK", style: .Cancel) { action in
NSLog("The simple alert's cancel action occured.")
}
// Add the action.
alertController.addAction(cancelAction)
presentViewController(alertController, animated: true, completion: nil)
see DOAlertController-DEMO for details
DOAlertController is available through CocoaPods.
To install add the following line to your Podfile:
pod 'DOAlertController'
This software is released under the MIT License, see LICENSE.txt.