Latest 0.1.5
Homepage https://github.com/nohirap/ANActionSheet
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Screen Shot

image_alt_text

Example

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

Requirements

Installation

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

pod "ANActionSheet"

Usage

Import ANActionSheet then use the following codes when you want to show the view.

let actionSheet = ANActionSheet(title: "Title", message: "Message!!!")
actionSheet.headerBackgroundColor = UIColor.blackColor()
actionSheet.titleColor = UIColor.redColor()
actionSheet.messageColor = UIColor.greenColor()
actionSheet.buttonsBorderColor = UIColor.blackColor()
let action1 = ANAction(title: "First Button", style: .Default) {
NSLog("Tap First Button!!!")
}
action1.buttonColor = UIColor.redColor()
action1.labelNumberOfLines = 3
actionSheet.addAction(action1)

let action2 = ANAction(title: "Second Button", style: .Default) {
NSLog("Tap Second Button!!!")
}
action2.buttonColor = UIColor.blueColor()
action2.labelColor = UIColor.greenColor()
actionSheet.addAction(action2)

let action3 = ANAction(title: "Third ButtonnThird ButtonnThird ButtonnThird ButtonnThird ButtonnThird Button", style: .Default) {
NSLog("Tap Third Button!!!")
}
action3.buttonColor = UIColor.yellowColor()
actionSheet.addAction(action3)

let cancelAction = ANAction(title: "Cancel", style: .Cancel)
cancelAction.labelColor = UIColor.redColor()
actionSheet.addAction(cancelAction)

actionSheet.show()

Author

nohirap, [email protected]

License

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

Latest podspec

{
    "name": "ANActionSheet",
    "version": "0.1.5",
    "summary": "ANActionSheet is ActionSheet that can be modified.",
    "description": "ANActionSheet is ActionSheet that can be modified.nBackground and Font.",
    "homepage": "https://github.com/nohirap/ANActionSheet",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "nohirap": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nohirap/ANActionSheet.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ANActionSheet/Classes/**/*"
}

Pin It on Pinterest

Share This