UITableView分隔符样式“单行蚀刻”无法正常工作(UITableView Separator Style “Single Line Etched” not working properly)

编程入门 行业动态 更新时间:2024-10-25 18:26:14
UITableView分隔符样式“单行蚀刻”无法正常工作(UITableView Separator Style “Single Line Etched” not working properly)

我的代码中有一个分组的UITableView,我试图让单行蚀刻样式工作,底部有1px的白色阴影。 相反,当我启用它时,我在顶部会得到一种负灰色阴影。 程序化和IB实现都不会产生1 px的阴影。 这是一个链接,其中包含阴影灰色阴影的截图:

TL; DR:我喜欢Single Line Etched风格给我一个1px的白色阴影,而不是它现在在顶部给我的1px灰色内阴影。

谢谢!

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: 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.

Thank you!

最满意答案

已经有一段时间了,但问题在于iPhone模拟器本身。 当我在实际的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.

更多推荐

本文发布于:2023-08-04 00:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1405161.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   样式   分隔符   工作   Separator

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!