iPad/iPhone uiSearchbar transparent background

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2011-02-09T11:04:47Z Indexed on 2012/09/26 9:38 UTC
Read the original article Hit count: 321

Filed under:
|
|

I know this questions was asked(and solved) before, but this wont work for me. as a matter of fact, I had it already solved, but this issue came back out of nowhere and struck me on the head.

I am not able to set the background of my UISearchBar transparent. I was always using:

searchBar.backgroundColor = [UIColor clearColor];   
[[searchBar.subviews objectAtIndex:0] removeFromSuperview];

and it worked nicely... but suddenly it stopped. could be since I upgraded my xcode-version but I am not sure. I spent a couple of hours already investigating this.. Is somebody out there to do this? please point me in the right direction. thanks heaps!!!

best regards T

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iPad