<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UINavigationBar &#8211; SMsoft &#8211; informatica e dintorni</title>
	<atom:link href="https://blog.smsoft.it/tag/uinavigationbar/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.smsoft.it</link>
	<description>consigli settimanali su MacOS, GNU/Linux ed Open Source</description>
	<lastBuildDate>Tue, 24 Jul 2012 09:07:36 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=89541</generator>
	<item>
		<title>XCode: background image per UINavigationBar</title>
		<link>https://blog.smsoft.it/2012/07/24/xcode-background-image-per-uinavigationbar/</link>
					<comments>https://blog.smsoft.it/2012/07/24/xcode-background-image-per-uinavigationbar/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 24 Jul 2012 09:07:36 +0000</pubDate>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[UINavigationBar]]></category>
		<guid isPermaLink="false">http://blog.smsoft.it/?p=1946</guid>

					<description><![CDATA[La visualizzazione di un&#8217;immagine di sfondo per la NavigationBar va fatta in modo differente in base alla versione di IOS utilizzata. Il codice seguente permette di impostare un&#8217;immagina di bckground nel corretto modo, sia se si usa IOS5 che IOS4: [crayon-6a41d83796e17979692056/]]]></description>
										<content:encoded><![CDATA[<p>La visualizzazione di un&#8217;immagine di sfondo per la NavigationBar va fatta in modo differente in base alla versione di IOS utilizzata. Il codice seguente permette di impostare un&#8217;immagina di bckground nel corretto modo, sia se si usa IOS5 che IOS4:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">UINavigationBar *theBar = self.navigationController.navigationBar;
if ( [theBar respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)] ) {
    //IOS 5
    [theBar setBackgroundImage:[UIImage imageNamed:logoName] forBarMetrics:UIBarMetricsDefault];
}else{
    //IOS 4
    [theBar insertSubview:[[UIImageView alloc] initWithImage:[UIImage imageNamed:logoName]] atIndex:0];
}</pre><p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.smsoft.it/2012/07/24/xcode-background-image-per-uinavigationbar/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
