<?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: How To Integrate iAd into Your iPhone App</title>
	<atom:link href="http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app/feed" rel="self" type="application/rss+xml" />
	<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app</link>
	<description>Tutorials for iPhone / iOS Developers and Gamers</description>
	<lastBuildDate>Sun, 29 Jan 2012 06:07:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Alfred</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-7766</link>
		<dc:creator>Alfred</dc:creator>
		<pubDate>Wed, 15 Dec 2010 01:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-7766</guid>
		<description>I have a problem. The callback &quot;bannerViewDidLoadAd&quot; is never called. only &quot;didFailToReceiveAdWithError&quot; is called each time and the ad Banner is never shoed.
I followed the steps exactly, any clue ???</description>
		<content:encoded><![CDATA[<p>I have a problem. The callback &#8220;bannerViewDidLoadAd&#8221; is never called. only &#8220;didFailToReceiveAdWithError&#8221; is called each time and the ad Banner is never shoed.<br />
I followed the steps exactly, any clue ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Wenderlich</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-7665</link>
		<dc:creator>Ray Wenderlich</dc:creator>
		<pubDate>Tue, 14 Dec 2010 01:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-7665</guid>
		<description>@Christopher: Lol!  Good to see the site&#039;s getting some traction with Google :]</description>
		<content:encoded><![CDATA[<p>@Christopher: Lol!  Good to see the site&#8217;s getting some traction with Google :]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Oxley</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-7309</link>
		<dc:creator>Christopher Oxley</dc:creator>
		<pubDate>Wed, 08 Dec 2010 21:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-7309</guid>
		<description>Ha, every time i need a hand with something in my app, google always directs me to your site! Fantastic work Ray!!!</description>
		<content:encoded><![CDATA[<p>Ha, every time i need a hand with something in my app, google always directs me to your site! Fantastic work Ray!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray Wenderlich</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-7111</link>
		<dc:creator>Ray Wenderlich</dc:creator>
		<pubDate>Sat, 04 Dec 2010 02:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-7111</guid>
		<description>@luca: Good question, never thought of that, not sure how it affects the revenue.  Yeah that does seem like a good way to do it, you could have a little helper class to manage the view or some such.

@Andre: Not sure, the ads appear OK in the example for me.

@Gavin: Cool, thanks for sharing the code!</description>
		<content:encoded><![CDATA[<p>@luca: Good question, never thought of that, not sure how it affects the revenue.  Yeah that does seem like a good way to do it, you could have a little helper class to manage the view or some such.</p>
<p>@Andre: Not sure, the ads appear OK in the example for me.</p>
<p>@Gavin: Cool, thanks for sharing the code!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fauad Anwar</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-6912</link>
		<dc:creator>Fauad Anwar</dc:creator>
		<pubDate>Tue, 30 Nov 2010 11:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-6912</guid>
		<description>Thanks for this tutorial.</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Miller</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-6880</link>
		<dc:creator>Gavin Miller</dc:creator>
		<pubDate>Mon, 29 Nov 2010 18:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-6880</guid>
		<description>Also, the code for Part 3: fixupAdView can be DRY&#039;d up like this:

- (void)fixupAdView:(UIInterfaceOrientation)toInterfaceOrientation {
    if (_adBannerView != nil) {        
        if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) {
            [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifier480x32];
			[self layoutAdBannerView:0 contentViewFrame:[self getBannerHeight:toInterfaceOrientation]];
        } else {
            [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifier320x50];
			[self layoutAdBannerView:-[self getBannerHeight:toInterfaceOrientation] contentViewFrame:0];
        }          
        [UIView beginAnimations:@&quot;fixupViews&quot; context:nil];
        if (_adBannerViewIsVisible) {

        } else {
 
        }
        [UIView commitAnimations];
    }   
}

- (void)layoutAdBannerView:(int)adBannerViewFrameHeight contentViewFrame:(int)contentViewFrameHeight {
	CGRect adBannerViewFrame = [_adBannerView frame];
	adBannerViewFrame.origin.x = 0;
	adBannerViewFrame.origin.y = adBannerViewFrameHeight;
	[_adBannerView setFrame:adBannerViewFrame];
	
	CGRect contentViewFrame = _contentView.frame;
	contentViewFrame.origin.y = contentViewFrameHeight;
	contentViewFrame.size.height = self.view.frame.size.height - contentViewFrameHeight;
	_contentView.frame = contentViewFrame;  
}</description>
		<content:encoded><![CDATA[<p>Also, the code for Part 3: fixupAdView can be DRY&#8217;d up like this:</p>
<p>- (void)fixupAdView:(UIInterfaceOrientation)toInterfaceOrientation {<br />
    if (_adBannerView != nil) {<br />
        if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) {<br />
            [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifier480x32];<br />
			[self layoutAdBannerView:0 contentViewFrame:[self getBannerHeight:toInterfaceOrientation]];<br />
        } else {<br />
            [_adBannerView setCurrentContentSizeIdentifier: ADBannerContentSizeIdentifier320x50];<br />
			[self layoutAdBannerView:-[self getBannerHeight:toInterfaceOrientation] contentViewFrame:0];<br />
        }<br />
        [UIView beginAnimations:@"fixupViews" context:nil];<br />
        if (_adBannerViewIsVisible) {</p>
<p>        } else {</p>
<p>        }<br />
        [UIView commitAnimations];<br />
    }<br />
}</p>
<p>- (void)layoutAdBannerView:(int)adBannerViewFrameHeight contentViewFrame:(int)contentViewFrameHeight {<br />
	CGRect adBannerViewFrame = [_adBannerView frame];<br />
	adBannerViewFrame.origin.x = 0;<br />
	adBannerViewFrame.origin.y = adBannerViewFrameHeight;<br />
	[_adBannerView setFrame:adBannerViewFrame];</p>
<p>	CGRect contentViewFrame = _contentView.frame;<br />
	contentViewFrame.origin.y = contentViewFrameHeight;<br />
	contentViewFrame.size.height = self.view.frame.size.height &#8211; contentViewFrameHeight;<br />
	_contentView.frame = contentViewFrame;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Miller</title>
		<link>http://www.raywenderlich.com/1371/how-to-integrate-iad-into-your-iphone-app#comment-6878</link>
		<dc:creator>Gavin Miller</dc:creator>
		<pubDate>Mon, 29 Nov 2010 17:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.raywenderlich.com/?p=1371#comment-6878</guid>
		<description>Went through this tutorial yesterday and it worked like a charm. Thanks Ray!</description>
		<content:encoded><![CDATA[<p>Went through this tutorial yesterday and it worked like a charm. Thanks Ray!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

