Skip to content

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

Notifications You must be signed in to change notification settings

JC-Sung/SJCActionSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SJCActionSheet

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

QQ:2439194386

更多好用的控件尽在邮箱

简介

SJCActionSheet 类似于微博微信 原文传送门 https://github.com/Lovezysong/SJCActionSheet

效果图:

  • WechatIMG357.jpeg
  • WechatIMG358.jpeg

https://cdn.yehwang.com/image/return_apply/20201224/7266f5a7435952018ec3c3cb2c8b4160.jpg https://cdn.yehwang.com/image/return_apply/20201224/19309c3f5d7714129a50b077c8e08d04.jpg

# ## 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]];

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published