我在ImageView中的图像故障了一秒钟 [英] My image in ImageView glitches for a second

查看:102
本文介绍了我在ImageView中的图像故障了一秒钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 5.1.1

I'm using Xcode 5.1.1

当我单击ViewController 1中的BACK按钮到ViewController 2时,当VC 1出现时,ImageView会出现1秒钟故障在恢复正常之前。我尝试使用performSegueWithIdentifier对segue进行编程,但这并没有解决问题。我尝试使用Modal的交叉溶解过渡,覆盖垂直和部分交叉,但它们也无助于故障。只有水平翻转没有毛刺,但我的应用程序看起来不太好看。我目前正在使用unwind segue从VC 2转到VC 1,但VC 1出现故障1秒钟。我试过常规模态,但这会产生更糟糕的问题。我该怎么办?

When i click the BACK button from ViewController 1 to ViewController 2, and when VC 1 appears the ImageView glitches for 1 second before going back to normal. I tried programming the segue with performSegueWithIdentifier but that didn't solve the issue. I tried using Modal's cross dissolve transition, cover vertical and partial cross but they don't help the glitch either. Only Flip Horizontal doesn't have the glitch but it wouldn't look good with my app. I'm currently using unwind segue to go from VC 2 to VC 1 but the VC 1 is glitching for 1 second. I tried regular modal but that creates worse problems. What do i do?

推荐答案

你应该承认UIImageView是一个非常通用的假设,可以找出你的问题实际上是。仅出于纯粹的诊断目的,我会做以下检查:

Well you should admit that "The UIImageView" is quite a generic assumption to figure out what your issue actually is. Just for pure diagnosis purpose I'd do the following checks:


  • 检查你分配给你的UIImage的大小的UIImageView。如果UIImage太大,则更高的分辨率可能会导致动画中出现一些渲染问题。

  • Check the size of your UIImage you're assigning to the UIImageView. If the UIImage is too big the higher resolution might cause some rendering problem in the animations.

要正确检查您可能想要运行的内容将Time Profiler添加到选项卡的工具。执行VC2的弹出或关闭你应该能够找出毛刺的来源。

To have a proper check of what's going on you might want to run instruments adding "Time Profiler" to your tab. Performing either the pop or dismiss of your VC2 you should be able to figure out where the glitch comes from.

I知道这是一个非常通用的答案,但是你提供的信息很少,认为没有人可以帮助你。

I know it's quite a generic answer but with the little info you provided don't think anyone might be able to help you more than that.

希望这会有所帮助。

这篇关于我在ImageView中的图像故障了一秒钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆