Latest 1.0.1
Homepage https://github.com/Rogaven/UIActionSheet-ODBuilder
License MIT
Platforms ios 5.0, requires ARC
Dependencies ODBlocks
Authors

UIActionSheet-ODBuilder

Version
License
Platform

UIActionSheet-ODBuilder is utility classes for build ActionSheets with action in blocks.

Usage

You can create ActionSheet with array of Action Items:

#import <UIActionSheet+ODBuilder.h>

- (void)showActionSheet {
    UIActionSheetItem *item = [UIActionSheetItem itemWithTitle:@"Choose from Library" block:^{
        // ...
    }];

    [[UIActionSheet od_actionSheetWithTitle:NSLocalizedString(@"Photo", nil) actionItems:@[ item ]
                          cancelButtonTitle:NSLocalizedString(@"Cancel", nil)] showInView:self.view];
}

Installation

UIActionSheet-ODBuilder is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "UIActionSheet+ODBuilder"

Author

Alexey Nazaroff, [email protected]

License

UIActionSheet-ODBuilder is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UIActionSheet+ODBuilder",
    "version": "1.0.1",
    "summary": "iOS UIActionSheet builder.",
    "homepage": "https://github.com/Rogaven/UIActionSheet-ODBuilder",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Alexey Nazaroff": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Rogaven/UIActionSheet-ODBuilder.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "5.0"
    },
    "dependencies": {
        "ODBlocks": [
            "~> 1.5"
        ]
    },
    "source_files": "src/**/*",
    "requires_arc": true
}

Pin It on Pinterest

Share This