Latest 1.0.3
Homepage https://github.com/daisuke-t-jp/LLAEasyAlertManager
License MIT
Platforms ios 10.0, requires ARC
Authors

LLAEasyAlertManager

Platform
Language Swift%204.2
Carthage compatible
Cocoapods
Build Status

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

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")}

Latest podspec

{
    "name": "LLAEasyAlertManager",
    "version": "1.0.3",
    "summary": "LLAEasyAlertManager is class for easy use of UIAlertController.",
    "description": ""LLAEasyAlertManager" is class for easy use of UIAlertController.",
    "homepage": "https://github.com/daisuke-t-jp/LLAEasyAlertManager",
    "screenshots": "https://raw.githubusercontent.com/daisuke-t-jp/LLAEasyAlertManager/master/doc/header.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "daisuke-t-jp": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/daisuke-t-jp/LLAEasyAlertManager.git",
        "tag": "1.0.3"
    },
    "source_files": "LLAEasyAlertManager/LLAEasyAlertManager/*.{h,swift}",
    "swift_version": "4.2",
    "requires_arc": true
}

Pin It on Pinterest

Share This