Latest 0.1.1
Homepage https://github.com/kamarshad/CustomActionsheet
License MIT
Platforms ios 7.0, requires ARC
Authors

This is a customized actionsheet which appears on top of UIWindow. Don’t worry about the detailed part like show/dismiss animation, It handles everything inside itself.

[![CI Status](http://img.shields.io/travis/mohd kamar shad/CustomActionsheet.svg?style=flat)](https://travis-ci.org/mohd kamar shad/CustomActionsheet)
Version
License
Platform

Usage

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

How to call

To use display action sheet in your app, simply follow below steps.

`#import "MKSActionSheetController.h"`

if you want to display an actionsheet having Title and Two Buttons along with Cancel Button your code should be like this.

`MKSActionSheetController* actionsheetController = [[MKSActionSheetController alloc] init];

 [actionsheetController showActionsheetInController:self
                        title:@"Actionsheet title" //Actionsheet header title text
                        backgroundColor:[UIColor lightGrayColor] //Actionsheet background color
                        cancelButtonTitle:@"CancelButton title" //Cancel button title text 
                        button1Title:@"Button1 title"  //Button1 title text 
                        button2Title:@"Button1 title"  //Button2 title text 
                        cancelButtonColor:[UIColor lightGrayColor]//Cancel button title text color
                        button1Color:[UIColor darkGrayColor] //Button1 title text color
                        button2Color:[UIColor darkGrayColor] //Button2 button title text color
                        completionBlock:^(kActionsheetTappedButtonIndex index) {
                        //Dissmiss Actionsheet controller
                            [actionsheetController dismissActionsheet];
                        //Do appropriate action
}];`

If you want to display, an actionsheet having Single Button with Cancel Button without any Title and Bakcground color.

    `MKSActionSheetController* actionsheetController = [[MKSActionSheetController alloc] init];

    [actionsheetController showActionsheetInController:self
                            title:nil //Actionsheet header title text
                            backgroundColor:nil //Actionsheet background color
                            cancelButtonTitle:@"CancelButton title" //Cancel button title text 
                            button1Title:@"Button1 title"  //Button1 title text 
                            button2Title:nil   //Button2 title text 
                            cancelButtonColor:[UIColor lightGrayColor]//Cancel button title text color
                            button1Color:[UIColor darkGrayColor] //Button1 title text color
                            button2Color:nil //Button2 title text color
                            completionBlock:^(kActionsheetTappedButtonIndex index) {

                                //Dissmiss Actionsheet controller
                                   [actionsheetController dismissActionsheet];
                                //Do appropriate action
    }];`

Requirements

It runs on iOS 7 and above OS version .

Installation

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

pod 'CustomActionsheet'

Author

Mohd Kamar Shad, [email protected]

License

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

Latest podspec

{
    "name": "CustomActionsheet",
    "version": "0.1.1",
    "summary": "A custom actionsheet base class of UIView.",
    "description": "This CocoaPod provides the custom actionsheet.n                       Don't worry about the detailed part like show/dismiss animation.n                       It handles everything inside itself.",
    "homepage": "https://github.com/kamarshad/CustomActionsheet",
    "license": "MIT",
    "authors": {
        "kamarshad": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kamarshad/CustomActionsheet.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/kamarshad",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "CustomActionsheet": [
            "Pod/Assets/*.png",
            "Pod/**/*.xib"
        ]
    }
}

Pin It on Pinterest

Share This