Latest 1.0.0
Homepage https://github.com/akiralereal/LEActionSheet
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

LEActionSheet

模仿微信、微博的ActionSheet

使用方法

pod ‘LEActionSheet’, ‘~> 1.0.0’

- (void)showAction {
    // 创建LeActionSheet对象
    LEActionSheet *sheet = [[LEActionSheet alloc] initWithDelegate:self CancelTitle:@"取消" OtherTitles:@"打开相册", @"打开相机", nil];
    // 2.显示出来
    [sheet show];
}

// 实现代理方法
- (void)actionSheet:(LEActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
    switch (buttonIndex) {
        case 1:
            //相册
            break;
        case 2:
            //相机
            break;
    }
}

示例

LEActionSheet

Latest podspec

{
    "name": "LEActionSheet",
    "version": "1.0.0",
    "summary": "ActionSheet used on iOS.",
    "description": "It is a marquee view used on iOS, which implement by Objective-C.",
    "homepage": "https://github.com/akiralereal/LEActionSheet",
    "license": "MIT",
    "authors": {
        "akira": "[email protected]"
    },
    "source": {
        "git": "https://github.com/akiralereal/LEActionSheet.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "LEActionSheet/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This