iPhone 6/6 Plus:UITableView分离器闪烁且厚度不同 [英] iPhone 6/6 Plus: UITableView separator flickering and different thickness

查看:126
本文介绍了iPhone 6/6 Plus:UITableView分离器闪烁且厚度不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 UITableView ,分隔符设置为单行。

I've got a UITableView with separator set to Single Line.

在iPhone上< = 5s一切看起来都很好,但在6和6 Plus(设备和模拟器)上,分离器有不同的厚度。它更糟糕,因为它们在滚动时闪烁,看起来非常糟糕。我没有手动设置高度,所以我不知道造成这种情况的原因。

On iPhones <= 5s everything looks fine, but on 6 and 6 Plus (device as well as simulator) the separators have a different thickness. It's even worse as they're flickering while scrolling which looks pretty bad. I don't set the height manually, so I have no idea what's causing this.

如您所见,前两行比下两行略粗。现在,如果我滚动,它们会从粗到薄变回,所以它看起来像闪烁...

As you can see, the first two lines are a little bit thicker than the next two. Now if I scroll, they change from thick to thin and back, so it looks like flickering...

推荐答案

问题是您的应用不支持iPhone 6和iPhone 6 Plus的原生分辨率。因此它会按比例放大,从而导致闪烁。

The problem is that your app doesn't support native resolution for the iPhone 6 and iPhone 6 Plus. Therefore it gets scaled up which results in the flickering.

您可以通过添加iOS8启动图像来启用原生分辨率。然后你的应用程序将以正确的分辨率运行,这个问题将得到解决。

You can enable native resolution by adding iOS8 launch images. Then your app will run in the right resolution and this problem will be fixed.

这篇关于iPhone 6/6 Plus:UITableView分离器闪烁且厚度不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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