ios - UIAlertView 动画卡住

标签 ios uialertview

我过去曾看到 UIAlertView 在其动画期间暂时卡住,但屏幕上没有任何其他卡住(例如从设备中删除应用程序时......其他应用程序继续摆动) .现在在我的应用程序中,我有一个 UIAlertView 在其动画中途卡住了片刻,但 Instruments 中的 Time Profiler 没有显示会卡住 UI 的 CPU 使用率,我可以看到警报背后的 UI 中发生的其他事情。什么可能导致这种情况?

最佳答案

通常这种类型的事情是由于在某些控件的操作方法中显示 alertView 引起的。如果是这种情况,请使用显示 UIAlert 的调度 block (您可以在操作例程中准备),并将其异步调度到主队列。

关于ios - UIAlertView 动画卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16950295/

相关文章:

ios - 使用 NSJSONSerialization 序列化一个 unsigned long long

ios - 如何在 Swift 4 中按列值对 UITableView 进行排序?

iOS - iOS 8 中的 UIAlertView/UIAlertController 方向问题

ipad - 当用户选择取消游戏中心登录时处理的函数?

ios - 自定义 UIAlertView : How to prevent an Objective-C object to be released automatically by ARC or How to retain an object manually in an ARC environment

ios - 显示 UIActionSheet 后,UIAlertView 未触发

ios - 应用程序被终止时未收到推送通知 - iOS

ios - 如何使用 HeaderDoc 在 Xcode 中为 SWIFT 文件生成 HTML 文档?

ios - 使用 UIAlert View 让用户输入标题

ios - 允许使用 WKWebView 自签名证书