UIAlert:使用 UIAlertView (iOS <= 7) 或 UIAlertViewController (iOS >= 8) 的 iOS 的简单 UIAlert

时间:2021-07-06 22:43:17
【文件属性】:
文件名称:UIAlert:使用 UIAlertView (iOS <= 7) 或 UIAlertViewController (iOS >= 8) 的 iOS 的简单 UIAlert
文件大小:15KB
文件格式:ZIP
更新时间:2021-07-06 22:43:17
Objective-C 用户界面警报 1.0 使用 UIAlertView (iOS <= 7) 或 UIAlertViewController (iOS >= 8) 的 iOS 的简单 UIAlert Objective-C 类。 ##一些实现信息 由于 ARC 和UIAlertView内部操作块的使用,ARC 在调用show后删除了创建的消息。 为了防止删除它,使用了私有单例类AlertManager ,它保存对所有创建的消息的引用,直到通过单击其中的按钮将其关闭。 此类还为每条消息生成唯一 ID。 第二个私有类称为MyButton并保存每个添加按钮的信息。 UIAlert 类非常简单,并尝试仅涵盖UIAlertView基本功能。 UIAlertViewController更加灵活 - 例如参见 (仅在 Swift 中) 安装 只需将UIAlert/MyAlertMessage.m和UIAlert/
【文件预览】:
UIAlert-master
----UIAlertTests()
--------UIAlertTests.m(862B)
--------Info.plist(751B)
----UIAlert.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(16KB)
----README.md(2KB)
----UIAlert()
--------ViewController.m(971B)
--------Info.plist(1KB)
--------MyAlertMessage.m(8KB)
--------main.m(337B)
--------MyAlertMessage.h(613B)
--------Base.lproj()
--------Images.xcassets()
--------ViewController.h(218B)
--------AppDelegate.h(280B)
--------AppDelegate.m(2KB)

网友评论