UINavigationController 弹出时 UIAlert 视觉变慢
在 UINavigationController 从堆栈中弹出视图控制器之前,我有一个 UIAlert 出现。这会导致非常明显的减速;当前视图变暗、暂停、滑动到新视图,最后出现 UIAlert。
这种减速是完全不受欢迎的。看起来很糟糕。以编程方式,我需要在视图控制器转换之前触发 UIAlert(尽管我不需要等待用户与 UIAlert 的交互继续),因为那是数据所在的位置。
那么,我是否(a)使数据可供视图控制器弹出后访问并触发 UIAlert,(b)向 UIAlert 添加某种时间或函数延迟,以便它在视图控制器后触发-pop,或者(c)一些其他好的建议?
I have a UIAlert appear just before the UINavigationController pops a view controller off the stack. This causes a very visible slow-down; the current view darkens, pauses, slides to the new view, and then at last the UIAlert appears.
The slow-down is entirely undesirable; it looks terrible. Programmatically I need to fire the UIAlert before the view controller transition (although I do not need to wait for user interaction w/the UIAlert to continue) because that's where the data is.
So do I (a) make the data accessible to after-the-view-controller-pop and fire UIAlert then, (b) add some sort of time or function delay to the UIAlert so that it fires after-the-view-controller-pop, or (c) some otehr good suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用performSelector:withObject:afterDelay:
Use performSelector:withObject:afterDelay: