Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 789 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 789 Bytes

SYActionSheetView

SYActionSheetView实现了类似于UIActionSheet的效果,简单易用,完美支持IOS5.0及以上版本。

用法:

 SYActionSheetView *actv = [[SYActionSheetView alloc] initWithTitle:nil cancelButtonTitle:@"cancle"      
 otherButtonTitles:@"action1",@"action2",nil];
 actv.syActionSheetActionBlock = ^(UIButton *actionBtn){
    
    if (actionBtn.tag == kBtnCaccleTag + 1)
    {
        SYLog(@"%@",actionBtn.titleLabel.text);
    }
    else if (actionBtn.tag == kBtnCaccleTag + 2)
    {
        SYLog(@"%@",actionBtn.titleLabel.text);
    }
 };
 [actv showSYActionSheet];

效果如下:

image