我的代码中有一个分组的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.
更多推荐
发布评论