移除 iOS 7 中的 UIToolbar 细线 [英] Remove UIToolbar hairline in iOS 7
本文介绍了移除 iOS 7 中的 UIToolbar 细线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
In iOS 7, Apple has changed UIToolbar
to display a 1px hairline at its top. This is visually distracting in some cases, and there does not seem to be any public API to remove it.
Setting a shadowImage does not work.
I am looking for a way of removing the hairline in a relatively clean way, and keep the ordinary background blur.
解决方案
If you set youBar.clipsToBounds = YES, the hairline disappear.
Hope this help.
[EDIT]
For the navigationBar bottom hairline, the solution here https://stackoverflow.com/a/18180330/2011578 also works great.
这篇关于移除 iOS 7 中的 UIToolbar 细线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文