类方法,通过提供标题、消息以及一个或两个按钮标题和按钮块来显示警报
[PXBlockAlertView showWithTitle:@"So Simple" message:@"I can't believe it's not a pain." acceptButtonTitle:@"Show Me Another" block:^(PXBlockAlertView *sender) {
[self showAlert];
} cancelButtonTitle:@"Awesome" block:^(PXBlockAlertView *sender) {
// do nothing
}];
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
本 Pod 需要 iOS 8.0 和 !use_frameworks
。
PXBlockAlertView 可通过 CocoaPods 获得。要安装它,只需在 Podfile 中添加以下行
pod "PXBlockAlertView"
Daniel Blakemore, [email protected]
PXBlockAlertView 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。