<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hide UISearchBar Background (iPhone SDK 3.2 &amp; 4.0)</title>
	<atom:link href="http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/</link>
	<description>Stuff and Things</description>
	<lastBuildDate>Thu, 02 Feb 2012 11:23:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: karthick</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-21809</link>
		<dc:creator>karthick</dc:creator>
		<pubDate>Thu, 02 Feb 2012 11:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-21809</guid>
		<description>Great thank you very much.</description>
		<content:encoded><![CDATA[<p>Great thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: irfan</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-19050</link>
		<dc:creator>irfan</dc:creator>
		<pubDate>Fri, 24 Jun 2011 11:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-19050</guid>
		<description>nicely explained ... thx</description>
		<content:encoded><![CDATA[<p>nicely explained &#8230; thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oli</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-17811</link>
		<dc:creator>Oli</dc:creator>
		<pubDate>Wed, 23 Mar 2011 11:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-17811</guid>
		<description>Great! Thanks a lot for sharing this!</description>
		<content:encoded><![CDATA[<p>Great! Thanks a lot for sharing this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-16681</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Tue, 21 Dec 2010 15:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-16681</guid>
		<description>@JF Martin
There are a number of ways you could add a background image to the search bar. One of the simpler methods which you could do before of after the original code I posted:

searchBar.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@&quot;BackgroundImage.png&quot;]];

You could also add a view to the background view. In the original code I posted, just replace this:

[subview removeFromSuperview];

With this:

UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@&quot;BackgroundImage.png&quot;]];
[subview addSubview:backgroundView];

And since UISearchBar inherits from UIView, you could remove the background image as in the original post, and then add the UISearchBar to another view that has a background.</description>
		<content:encoded><![CDATA[<p>@JF Martin<br />
There are a number of ways you could add a background image to the search bar. One of the simpler methods which you could do before of after the original code I posted:</p>
<p>searchBar.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"BackgroundImage.png"]];</p>
<p>You could also add a view to the background view. In the original code I posted, just replace this:</p>
<p>[subview removeFromSuperview];</p>
<p>With this:</p>
<p>UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BackgroundImage.png"]];<br />
[subview addSubview:backgroundView];</p>
<p>And since UISearchBar inherits from UIView, you could remove the background image as in the original post, and then add the UISearchBar to another view that has a background.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JF Martin</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-16628</link>
		<dc:creator>JF Martin</dc:creator>
		<pubDate>Sat, 11 Dec 2010 14:11:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-16628</guid>
		<description>Hi,
What if you want to replace the background image with a different one instead of removing it?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
What if you want to replace the background image with a different one instead of removing it?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ikus</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-16439</link>
		<dc:creator>Ikus</dc:creator>
		<pubDate>Wed, 20 Oct 2010 19:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-16439</guid>
		<description>This has been really helpful for me. It saved me a lot of time searching the internet. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>This has been really helpful for me. It saved me a lot of time searching the internet. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-16285</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Mon, 23 Aug 2010 03:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-16285</guid>
		<description>Hi Grizzly,
I just tested this out using a nib on an iPad app (iOS 3.2) instead of programmatically creating the interface and it works correctly for me. Without seeing your code I&#039;m not sure what to suggest (but feel free to post it here).</description>
		<content:encoded><![CDATA[<p>Hi Grizzly,<br />
I just tested this out using a nib on an iPad app (iOS 3.2) instead of programmatically creating the interface and it works correctly for me. Without seeing your code I&#8217;m not sure what to suggest (but feel free to post it here).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grizzly</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-16275</link>
		<dc:creator>Grizzly</dc:creator>
		<pubDate>Fri, 20 Aug 2010 09:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-16275</guid>
		<description>However this doesn&#039;t work with 3.2. When I use this code I get a black background. Do you know what could be the problem?

I have my View that contains the search bar loaded from a nib. 

The connections to outlets are made properly.</description>
		<content:encoded><![CDATA[<p>However this doesn&#8217;t work with 3.2. When I use this code I get a black background. Do you know what could be the problem?</p>
<p>I have my View that contains the search bar loaded from a nib. </p>
<p>The connections to outlets are made properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thankful</title>
		<link>http://www.btjones.com/2010/05/hide-uisearchbar-background-iphone-sdk-3-2-4-0/comment-page-1/#comment-16193</link>
		<dc:creator>thankful</dc:creator>
		<pubDate>Mon, 26 Jul 2010 13:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.btjones.com/?p=767#comment-16193</guid>
		<description>thank you for this, it did save me time...</description>
		<content:encoded><![CDATA[<p>thank you for this, it did save me time&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.271 seconds -->

