CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Martin Fernandez.
LVGradientActionSheet it's a custom Action Sheet with a colourful gradient that mimics UIActionSheet API.
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
@endTo run the example project; clone the repo, and run pod install from the Example directory first.
Martin F, [email protected]
LVGradientActionSheet is available under the MIT license. See the LICENSE file for more info.