UITableView分隔符样式“蚀刻单行"工作不正常 [英] UITableView Separator Style "Single Line Etched" not working properly

查看:54
本文介绍了UITableView分隔符样式“蚀刻单行"工作不正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码中有一个分组的UITableView,并且试图使单行蚀刻"样式起作用,该样式在底部具有1px的白色阴影.相反,启用它后,顶部会出现一种负灰色阴影.无论是编程方式还是IB实施方式,都不会产生1 px的阴影.这是指向带有负灰色阴影的屏幕截图的链接:

I have a grouped UITableView in my code and am trying to get the Single Line Etched style working, where it has the 1px white drop shadow at the bottom. Instead, I'm getting a sort of negative gray shadow at the top when I enable it. Neither programmatic nor IB implementation is yielding the 1 px drop shadow. Here's a link to a screenshot of what it looks like with the negative gray shadow:

TL; DR:我希望单线蚀刻"样式给我一个1px的白色阴影,而不是现在给我顶部的1px的灰色内部阴影.

TL;DR: I'd like the Single Line Etched style to give me a 1px white drop shadow instead of the 1px gray inner shadow it gives me now at the top.

谢谢!

推荐答案

已经有一段时间了,但是这里的问题出在iPhone Simulator本身.我在实际的iOS设备上启动该应用程序后,一切正常,白色阴影出现了.无论如何,谢谢您的建议,BPratt –我敢肯定它将在其他情况下使用.

It's been a while, but the problem here lay in the iPhone Simulator itself. As soon as I launched the app on an actual iOS device, everything worked fine and the white drop shadow was there. Regardless, thank you for the advice, BPratt–I'm sure that'll come into use for another situation.

这篇关于UITableView分隔符样式“蚀刻单行"工作不正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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