<?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: Showing Network Activity When there Isn’t Any</title>
	<atom:link href="http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html/feed" rel="self" type="application/rss+xml" />
	<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html</link>
	<description>iOS and Objective-C Tips, Tricks and Tutorials.</description>
	<lastBuildDate>Sat, 19 May 2012 05:15:17 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Sid</title>
		<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html#comment-23592</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Sun, 15 Aug 2010 19:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=726#comment-23592</guid>
		<description>Thanks so much. It worked.</description>
		<content:encoded><![CDATA[<p>Thanks so much. It worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Muchow</title>
		<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html#comment-23554</link>
		<dc:creator>John Muchow</dc:creator>
		<pubDate>Sat, 14 Aug 2010 21:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=726#comment-23554</guid>
		<description>Sid, what I think you want to do is to start the activity indicator before sending the email, and once complete, didFinishWithResult is called and you can then stop the indicator.</description>
		<content:encoded><![CDATA[<p>Sid, what I think you want to do is to start the activity indicator before sending the email, and once complete, didFinishWithResult is called and you can then stop the indicator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sid</title>
		<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html#comment-23552</link>
		<dc:creator>Sid</dc:creator>
		<pubDate>Sat, 14 Aug 2010 21:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=726#comment-23552</guid>
		<description>Hello there,

I&#039;m new I&#039;m to iPhone dev.

I&#039;m trying to implement NetworkActivityIndicatorVisible while sending an email.

If I write the below mentioned code, then the activity indicator keeps on spinning, even after the mail is sent.

-(void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error{	
	
	[self dismissModalViewControllerAnimated:YES];
	[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
}

If I add this code, after ...YES];

	[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];

then the activity indicator disappears.

I want the activity indicator to be visible as long as the mail is not sent (task performing in the background). And once it&#039;s sent the activity indicator stops spinning and disappears. 

Would really appreciate if you could solve this problem.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hello there,</p>
<p>I&#8217;m new I&#8217;m to iPhone dev.</p>
<p>I&#8217;m trying to implement NetworkActivityIndicatorVisible while sending an email.</p>
<p>If I write the below mentioned code, then the activity indicator keeps on spinning, even after the mail is sent.</p>
<p>-(void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error{	</p>
<p>	[self dismissModalViewControllerAnimated:YES];<br />
	[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];<br />
}</p>
<p>If I add this code, after &#8230;YES];</p>
<p>	[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];</p>
<p>then the activity indicator disappears.</p>
<p>I want the activity indicator to be visible as long as the mail is not sent (task performing in the background). And once it&#8217;s sent the activity indicator stops spinning and disappears. </p>
<p>Would really appreciate if you could solve this problem.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monte</title>
		<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html#comment-11414</link>
		<dc:creator>Monte</dc:creator>
		<pubDate>Thu, 18 Mar 2010 20:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=726#comment-11414</guid>
		<description>Be advised, Apple specifically states in the HIG that the activity indicator in the status bar is for network activity only. Any other activity should be handled with your own activity indicator elsewhere.

http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/ApplicationControls/ApplicationControls.html</description>
		<content:encoded><![CDATA[<p>Be advised, Apple specifically states in the HIG that the activity indicator in the status bar is for network activity only. Any other activity should be handled with your own activity indicator elsewhere.</p>
<p><a href="http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/ApplicationControls/ApplicationControls.html" rel="nofollow">http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/ApplicationControls/ApplicationControls.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html#comment-3782</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Fri, 03 Jul 2009 13:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=726#comment-3782</guid>
		<description>I heard that it does work on the simulator but only if you are connected to the net via ethernet. Weird!

&lt;em&gt;Editor&#039;s Note: This is in reference to the SDK 3.x., where the spinner now works in the simulator&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>I heard that it does work on the simulator but only if you are connected to the net via ethernet. Weird!</p>
<p><em>Editor&#8217;s Note: This is in reference to the SDK 3.x., where the spinner now works in the simulator</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://MobileDeveloperTips.com/cocoa/showing-network-activity-when-there-isn%e2%80%99t-any.html#comment-1115</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 19 Apr 2009 04:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://iPhoneDeveloperTips.com/?p=726#comment-1115</guid>
		<description>FYI, I have confirmed that this doesn&#039;t show up in the Simulator (2.2.1), but DOES work on the device.</description>
		<content:encoded><![CDATA[<p>FYI, I have confirmed that this doesn&#8217;t show up in the Simulator (2.2.1), but DOES work on the device.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

