SJCActionSheet

类似于微博微信的ActionSheet,用法和系统的ActionSheet用法一样,采用Block,非常简单,可定义成都高

ActionSheet

《SJCActionSheet》 WechatIMG357.jpeg

《SJCActionSheet》 WechatIMG358.jpeg

# Usage An example:

SJCActionSheet *sheet = [SJCActionSheet sjcSheetWithTitle:@"提示" message:@"去App Store评个分吧"];
    SJCAction *action1 = [SJCAction actionWithTitle:@"好的" style:SJCActionStyleDefault handler:^(SJCAction *action) {
        NSLog(@"点击了%@",action.title);
    }];
    SJCAction *action2 = [SJCAction actionWithTitle:@"等等" style:SJCActionStyleCancel handler:^(SJCAction *action) {
        NSLog(@"点击了%@",action.title);
    }];
    SJCAction *action3 = [SJCAction actionWithTitle:@"忽略" style:SJCActionStyleDestructive handler:^(SJCAction *action) {
        NSLog(@"点击了%@",action.title);
    }];
    [sheet showWithActions:@[action1, action2, action3]];
    原文作者:EI_Rey
    原文地址: https://www.jianshu.com/p/f74dcec07c20
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞