Latest 0.1.1
Homepage https://github.com/shamshiranees/SAAlertView
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

ScreenShots

ScreenShot
ScreenShot
ScreenShot

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Swift 3.0
Xcode 8.0

Installation

SAAlertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SAAlertView'

Usage

//Alert with title
SAAlertView.alertView("Alert Title")

//Alert with title and message
SAAlertView.alertView("Warning", message: "type you message here")

//Alert with single button action
SAAlertView.alertView("Waring", message: "type your message", buttonTitle: "retry", buttonAction: reload)

//Alert with multiple buttons
SAAlertView.multipleAlertView(title: "Question",message:"select a option",buttonTitles:["a","b","c","d","a","b","c","d"]) { (indexOfButton) in
if indexOfButton == 0{
print("a")
}
else if indexOfButton == 1{
print("b")
}else{

print("button clicked")
}
}

//ActionSheet with multiple buttons
SAAlertView.actionSheet(title: "options",buttonTitles:["a","b","c","d","a","b","c","d"]) { (indexOfButton) in
if indexOfButton == 0{
print("a")
}
else if indexOfButton == 1{
print("b")
}else{

print("button clicked")
}
}
}

Author

[email protected]

License

SAAlertView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SAAlertView",
    "version": "0.1.1",
    "summary": "Can use AlertViewController very easily",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/shamshiranees/SAAlertView",
    "screenshots": [
        "https://raw.githubusercontent.com/shamshiranees/SAAlertView/master/Example/SAAlertView/alert.png",
        "https://raw.githubusercontent.com/shamshiranees/SAAlertView/master/Example/SAAlertView/multipleButtons.png",
        "https://raw.githubusercontent.com/shamshiranees/SAAlertView/master/Example/SAAlertView/actionSheet.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/shamshiranees/SAAlertView.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "SAAlertView/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This