我知道这个问题曾被问及(并解决过),但这不会为我工作。事实上,我已经解决了这个问题,但这个问题没有任何意义,让我头痛。iPad/iPhone uiSearchbar透明背景
我无法将我的UISearchBar
的背景设置为透明。 我一直在使用:
searchBar.backgroundColor = [UIColor clearColor];
[[searchBar.subviews objectAtIndex:0] removeFromSuperview];
它的工作很好......但突然它停了下来。可能是因为我升级了我的xcode版本,但我不确定。 我花了几个小时已经在调查这个.. 有人在那里做这个?请指向正确的方向。 谢谢堆!!!
问候 牛逼
看到我的答案在这里。 http://stackoverflow.com/a/10647443/751026 – thesummersign 2012-05-18 06:06:04