ALActionSheetView 1.3.1

ALActionSheetView 1.3.1

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2015年9月

WangQi 维护。



  • WangQi

这是一个仿微信的 ActionSheet,用于替换系统 UIActionSheet,并支持 block,接口与系统的 UIActionSheet 一致,简单友好,便于使用。

Podfile

platform :ios, '7.0'
pod "ALActionSheetView", "~> 1.3"

Demo

Useage(用法)

1、导入 #import "ALActionSheetView.h" 2、直接调用方法:

  • (ALActionSheetView *)showActionSheetWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles handler:(ALActionSheetViewDidSelectButtonBlock)block; 或
  • (instancetype)initWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles:(NSArray *)otherButtonTitles handler:(ALActionSheetViewDidSelectButtonBlock)block;

例如: ALActionSheetView *actionSheetView = [ALActionSheetView showActionSheetWithTitle:@"测试" cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:@[@"测试1", @"测试2"] handler:^(ALActionSheetView *actionSheetView, NSInteger buttonIndex) { NSLog(@"%zd", buttonIndex); }];

[actionSheetView show];

联系

许可证

版权 (c) 2015 WangQi

ALActionSheetView 采用 MIT 许可证维护。 该项目可免费用于任何和所有项目。您可以在任何公开或私有的项目中使用 ALActionSheetView,无需署名 - 尽管我们更喜欢署名!这有助于我们。

不确定您的权利? 阅读更多。

包含的代码的单独信用存在于头文件和文档中。我们感谢他们对开源社区的贡献。