LCAlertController
示例
要运行示例项目,请克隆仓库,然后在 Example 目录中首先运行 pod install
需求
安装
LCAlertController 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'LCAlertController'
作者
jgyhc, [email protected]
许可证
LCAlertController 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。
用法
LCActionSheetViewController *viewController = [[LCActionSheetViewController alloc] initWithTitles:@[@"确定", @"asdalsk", @"阿达的快乐", @"按时打卡了敬爱空间的"] handler:^(LCActionSheet * _Nonnull actionSheet, NSString * _Nonnull title, NSInteger idex) {
NSLog(@"点击了%@", title);
}];
[self presentViewController:viewController animated:YES completion:nil];