Latest 1.0.0
Homepage https://github.com/bilby91/LVGradientActionSheet
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

Twitter
[License MIT]()
Version
Platform Build Status

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

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

pod "LVGradientActionSheet"

Author

Martin F, [email protected]

License

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

Latest podspec

{
    "name": "LVGradientActionSheet",
    "version": "1.0.0",
    "summary": "A UIActionSheet much more colourful.",
    "description": "                        LVGradientActionSheet it's a custom Action Sheet with an                        colourful gradient that mimics UIActionSheet API.n",
    "homepage": "https://github.com/bilby91/LVGradientActionSheet",
    "license": "MIT",
    "authors": {
        "Martin F": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bilby91/LVGradientActionSheet.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/bilby91",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "ios": {
        "source_files": "Classes/ios/*.{h,m}",
        "exclude_files": "Classes/osx"
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This