https://github.com/daisuke-t-jp/llaeasyalertmanager
LLAEasyAlertManager is class for easy use of UIAlertController.
https://github.com/daisuke-t-jp/llaeasyalertmanager
carthage cocoapods swift uialertcontroller
Last synced: 3 months ago
JSON representation
LLAEasyAlertManager is class for easy use of UIAlertController.
- Host: GitHub
- URL: https://github.com/daisuke-t-jp/llaeasyalertmanager
- Owner: daisuke-t-jp
- License: mit
- Created: 2019-01-28T23:30:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T02:34:31.000Z (about 6 years ago)
- Last Synced: 2025-01-30T11:45:59.273Z (4 months ago)
- Topics: carthage, cocoapods, swift, uialertcontroller
- Language: Swift
- Homepage:
- Size: 154 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
------

[](https://developer.apple.com/swift)
[](https://github.com/Carthage/Carthage)
[](https://cocoapods.org/pods/LLAEasyAlertManager)
[](https://travis-ci.org/daisuke-t-jp/LLAEasyAlertManager)# What is this?
**LLAEasyAlertManager** is class for easy use of UIAlertController.
# Install
### Carthage
`github "daisuke-t-jp/LLAEasyAlertManager"`### CocoaPods
```
use_frameworks!target 'target' do
pod 'LLAEasyAlertManager'
end
```# Usage
``` swift
import LLAEasyAlertManager/**
* Present alert with
* - Message
* - OK button
*/
LLAEasyAlertManager.sharedInstance.present(self, message: "Message")/**
* Present alert with
* - Message
* - Title
* - OK button
*/
LLAEasyAlertManager.sharedInstance.present(self, message: "MessageTitle", title: "title")/**
* Present alert with
* - Message
* - Title
* - OK button
* - Default action handler
*/
LLAEasyAlertManager.sharedInstance.present(self,
message: "HandlerDefault",
title: "title",
handlerDefault: { (action: UIAlertAction!) in
print("default") })/**
* Present alert with
* - Message
* - Title
* - OK button
* - Cancel button
* - Cancel action handler
*/
LLAEasyAlertManager.sharedInstance.present(self,
message: "HandlerCancel",
title: "title",
handlerDefault: nil,
handlerCancel: { (action: UIAlertAction!) in
print("cancel") })/**
* Present alert with
* - Message
* - Title
* - OK button
* - Cancel button
* - Default action handler
* - Cancel action handler
*/
LLAEasyAlertManager.sharedInstance.present(self,
message: "HandlerBoth",
title: "title",
handlerDefault: { (action: UIAlertAction!) in
print("default")},
handlerCancel: { (action: UIAlertAction!) in
print("cancel")}
```