这是一个仿微信的 ActionSheet,用于替换系统 UIActionSheet,并支持 block,接口与系统的 UIActionSheet 一致,简单友好,便于使用。
platform :ios, '7.0'
pod "ALActionSheetView", "~> 1.3"
1、导入 #import "ALActionSheetView.h" 2、直接调用方法:
例如: 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,无需署名 - 尽管我们更喜欢署名!这有助于我们。
不确定您的权利? 阅读更多。
包含的代码的单独信用存在于头文件和文档中。我们感谢他们对开源社区的贡献。