UIToolBar可以不透明吗? [英] Couldn't UIToolBar be transparent?
本文介绍了UIToolBar可以不透明吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试以下代码,但它不工作。
I try the following code, but it doesn't work.
[helloToolbar setBackgroundColor:[UIColor clearColor]];
推荐答案
最好的方法是使用
[helloToolbar setBarStyle:UIBarStyleBlack];
[helloToolbar setTranslucent:YES];
这将得到一个黑色但半透明的工具栏。
This will get you a black but translucent toolbar.
这篇关于UIToolBar可以不透明吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文