如何删除UIToolBar上的顶部边框 [英] how can I remove the top border on UIToolBar

查看:113
本文介绍了如何删除UIToolBar上的顶部边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的UIToolBar色调颜色设置为某个值,并且我看到了我要删除的边框线:

I have set my UIToolBar tint color to some value, and there is this border line that I see in which I want to remove:

如何删除此黑色边框>

How do I remove this black border>

推荐答案

正确的答案是极权主义者的答案......仅供参考。 https://stackoverflow.com/a/14448645/627299

Correct answer is the one by totalitarian...FYI. https://stackoverflow.com/a/14448645/627299

我的回复仍然低于参考。

My response is still below for reference.

这是我用WHITE背景工具栏做的...

Here's what I did with my WHITE background toolbar...

whiteToolBar.layer.borderWidth = 1;
whiteToolBar.layer.borderColor = [[UIColor whiteColor] CGColor];    

也许你可以用你的颜色做同样的事情。

Perhaps you could do the same thing with your color instead.

这篇关于如何删除UIToolBar上的顶部边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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