KKActionSheet 0.2

KKActionSheet 0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • leoru

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