Latest 0.2
Homepage https://github.com/leoru/KKActionSheet
License MIT
Platforms ios 7.0, requires ARC
Authors

Subclass of UIActionSheet for setting text color in buttons for given indexes.

Screenshots

Install

1.Over cocoapods

pod install 'KKActionSheet'

2.You can drag the src/KKActionSheet folder to your project. This library must be ARC enabled.

Use

At first

#import "KKActionSheet.h"

Then in yours controller for example:

- (IBAction)actionShowActionSheet:(id)sender
{
    KKActionSheet *sheet = [[KKActionSheet alloc] initWithTitle:@"Test actionsheet" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Button index 1",@"Button index 2", nil];
    [sheet setTitlesTextColor:[UIColor blackColor]];
    [sheet setTextColors:@[[UIColor redColor], [UIColor blueColor]] forButtonIndexes:@[@(0),@(1)]];
    [sheet showInView:self.view];
}

Delegate and other properties and methods are equal to UIActionSheet.

License

MIT License

Latest podspec

{
    "name": "KKActionSheet",
    "version": "0.2",
    "summary": "Subclass of UIActionSheet for setting text color in buttons for given indexes",
    "homepage": "https://github.com/leoru/KKActionSheet",
    "license": "MIT",
    "authors": {
        "leoru": "[email protected]"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/leoru/KKActionSheet.git",
        "tag": "v0.2"
    },
    "source_files": "KKActionSheet/*.{h,m}"
}

Pin It on Pinterest

Share This