【文件属性】:
文件名称:GUNAlert:GUNAlert 是 UIAlertView 和 UIAlertController 的简单包装器
文件大小:25KB
文件格式:ZIP
更新时间:2021-06-28 01:20:38
Objective-C
枪械警报
GUNAlert 是 UIAlertView 和 UIAlertController 的简单包装器。 适用于需要与 iOS 版本 < 8 保持向后兼容性的应用程序。它被设计为适用于大多数常见用例的简单解决方案。
用法
例子
要运行示例项目, pod install克隆 repo,然后从 Example 目录运行pod install 。
设置
在使用警报之前,您需要实例化GUNAlert类,并确保在处理警报之前它的引用不会消失。 下面是一个例子:
在您的UIViewController创建一个GUNAlert类的实例并将其分配为strong属性。
@interface MyViewController ()
@property ( strong , nonatomic ) GUNAlert *alert;
@end
@implementation GUNViewContro
【文件预览】:
GUNAlert-master
----.gitignore(621B)
----README.md(4KB)
----Example()
--------Podfile.lock(379B)
--------GUNAlert.xcodeproj()
--------GUNAlert.xcworkspace()
--------GUNAlert()
--------Podfile(247B)
--------Tests()
----Pod()
--------Assets()
--------Classes()
----GUNAlert.podspec(1KB)
----LICENSE(1KB)
----.travis.yml(573B)