Skip to content

okmr-d/DOAlertController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOAlertController

Simple Alert View written in Swift, which can be used as a UIAlertController replacement.
It supports from iOS7! It is simple and easily customizable!

BackgroundImage BackgroundImage

Easy to use

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)

Customize

see DOAlertController-DEMO for details

  • change Fonts
  • change color (Background, View, Buttons)
  • add TextField (Alert style only)

BackgroundImage BackgroundImage

Installation

DOAlertController is available through CocoaPods.

To install add the following line to your Podfile:

pod 'DOAlertController'

License

This software is released under the MIT License, see LICENSE.txt.

About

Simple Alert View written in Swift, which can be used as a UIAlertController. (AlertController/AlertView/ActionSheet)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors