[英]Segue animations break
A lot of times the segue animations in my app do break.很多时候我的应用程序中的转场动画确实会中断。 When this happens all these animation flick at once instead of the popover/slide transitions.当这种情况发生时,所有这些动画都会立即轻弹,而不是弹出窗口/幻灯片过渡。 I don't use any custom segue animations.我不使用任何自定义转场动画。 I can't find what a reason for this behaviour could be so I don't know where to start with debugging.我找不到这种行为的原因,所以我不知道从哪里开始调试。 I tried symbolic breakpoints but so far no luck.我尝试了符号断点,但到目前为止还没有运气。 What can be the reason that the animations break?动画中断的原因是什么?
My storyboard is:我的故事板是:
Tab Bar View controller > Navigation controller > Table view controller > push to other storyboard > navigation controller > Table view controller标签栏视图控制器 > 导航控制器 > 表视图控制器 > 推送到其他故事板 > 导航控制器 > 表视图控制器
The animations did break because an UIImageView was updated outside the main thread.动画确实中断了,因为 UIImageView 在主线程之外更新。
Fixed it by wrapping it in:通过将其包装在以下位置修复它:
dispatch_async(dispatch_get_main_queue(),{
//update image view
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.