LVGradientActionSheet 1.0.0

LVGradientActionSheet 1.0.0

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

Maintained by Martin Fernandez.



License MIT

LVGradientActionSheet it's a custom Action Sheet with a colourful gradient that mimics UIActionSheet API.

Blue Red

Usage

LVGradientActionSheet is really easy to use, the only big difference is the initialiser you need to call.

- (id)initWithOptions:(NSArray *)options
          cancelTitle:(NSString *)cancelTitle
     topGradientColor:(UIColor *)topColor
  bottomGradientColor:(UIColor *)bottomColor
             delegate:(id<LVGradientActionSheetDelegate>)delegate;

All the available delegate methods are this ones, take a look:

@protocol LVGradientActionSheetDelegate <NSObject>

@required

- (void)actionSheet:(LVGradientActionSheet *)actionSheet clickedButtonWithOption:(NSString *)option;

@optional

- (void)willPresentActionSheet:(LVGradientActionSheet *)actionSheet;  // before animation and showing view
- (void)didPresentActionSheet:(LVGradientActionSheet *)actionSheet;  // after animation

- (void)actionSheet:(LVGradientActionSheet *)actionSheet willDismissWithOption:(NSString *)option; // before animation and hiding view
- (void)actionSheet:(LVGradientActionSheet *)actionSheet didDismissWithWithOption:(NSString *)option;  // after animation

@end

Example

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

Installation

Author

Martin F, [email protected]

License

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