<?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: iPhone Programming Tutorial &#8211; Saving/Retrieving Data Using NSUserDefaults</title>
	<atom:link href="/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/feed/" rel="self" type="application/rss+xml" />
	<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/</link>
	<description>iPhone Programming Tutorials</description>
	<lastBuildDate>Tue, 31 Mar 2015 14:02:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.3</generator>
	<item>
		<title>By: UK</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9721</link>
		<dc:creator><![CDATA[UK]]></dc:creator>
		<pubDate>Thu, 23 May 2013 05:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9721</guid>
		<description><![CDATA[I need to save json Data that contains images and its information.

I am able to parse it into tableview and i am saving it to the plist.Problem is when it goes to the DetailViewController it takes a lot  of time to load image.

Actually plist is saving image URL but i want image to be saved locally to improve navigation speed.

So, how to use NSDefaultUser to save images in MasterViewController and  load image in detailViewController for a selected row index.]]></description>
		<content:encoded><![CDATA[<p>I need to save json Data that contains images and its information.</p>
<p>I am able to parse it into tableview and i am saving it to the plist.Problem is when it goes to the DetailViewController it takes a lot  of time to load image.</p>
<p>Actually plist is saving image URL but i want image to be saved locally to improve navigation speed.</p>
<p>So, how to use NSDefaultUser to save images in MasterViewController and  load image in detailViewController for a selected row index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Nixon</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9648</link>
		<dc:creator><![CDATA[Chad Nixon]]></dc:creator>
		<pubDate>Fri, 15 Mar 2013 14:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9648</guid>
		<description><![CDATA[Cool thread!! I have been playing around with NSUserDefaults. I want to save a UITableViewCellAccessoryCheckmark in a table so that when I come back to the table after switching view the check marks will still be there, but I am not clear on how to set it and how to retrieve it. Here  bit of code:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
         if (cell.accessoryType == UITableViewCellAccessoryNone) {
             cell.accessoryType = UITableViewCellAccessoryCheckmark;
               NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
         [defaults setObject:isChecked forKey:@&quot;lastIndexed&quot;];
             [defaults synchronize];
}
}

But I am not sure how to retrieve it. isChecked is a string. Should it be something else? So I am not sure where to retrieve it viewDidLoad or cellForRowAtIndexPath? Somthing like this: [[NSUserDefaults standardUserDefaults] objectForKey:@&quot;lastIndexed&quot;];

All help would be appreciated.]]></description>
		<content:encoded><![CDATA[<p>Cool thread!! I have been playing around with NSUserDefaults. I want to save a UITableViewCellAccessoryCheckmark in a table so that when I come back to the table after switching view the check marks will still be there, but I am not clear on how to set it and how to retrieve it. Here  bit of code:</p>
<p>&#8211; (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath<br />
{<br />
    UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];<br />
         if (cell.accessoryType == UITableViewCellAccessoryNone) {<br />
             cell.accessoryType = UITableViewCellAccessoryCheckmark;<br />
               NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];<br />
         [defaults setObject:isChecked forKey:@&#8221;lastIndexed&#8221;];<br />
             [defaults synchronize];<br />
}<br />
}</p>
<p>But I am not sure how to retrieve it. isChecked is a string. Should it be something else? So I am not sure where to retrieve it viewDidLoad or cellForRowAtIndexPath? Somthing like this: [[NSUserDefaults standardUserDefaults] objectForKey:@&#8221;lastIndexed&#8221;];</p>
<p>All help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P. Mallette</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9628</link>
		<dc:creator><![CDATA[P. Mallette]]></dc:creator>
		<pubDate>Thu, 14 Feb 2013 21:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9628</guid>
		<description><![CDATA[Thanks for the help! After searching the web and finding multiple possible solutions, it&#039;s yours that did it! Clear and concise.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the help! After searching the web and finding multiple possible solutions, it&#8217;s yours that did it! Clear and concise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poori</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9578</link>
		<dc:creator><![CDATA[poori]]></dc:creator>
		<pubDate>Mon, 03 Dec 2012 11:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9578</guid>
		<description><![CDATA[please telm me the code for jobportal database]]></description>
		<content:encoded><![CDATA[<p>please telm me the code for jobportal database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P.F.</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9566</link>
		<dc:creator><![CDATA[P.F.]]></dc:creator>
		<pubDate>Tue, 20 Nov 2012 15:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9566</guid>
		<description><![CDATA[Additional question: is NSUserDefault saved outside my app (somewhere on the iPhone or iPad). So that the datas are remaining, even when de app is being deinstalled and installed again? Does it store the datas somewhere in the registry referencing my app? this would be great. This would be what I&#039;m searching for....]]></description>
		<content:encoded><![CDATA[<p>Additional question: is NSUserDefault saved outside my app (somewhere on the iPhone or iPad). So that the datas are remaining, even when de app is being deinstalled and installed again? Does it store the datas somewhere in the registry referencing my app? this would be great. This would be what I&#8217;m searching for&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P.F.</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9565</link>
		<dc:creator><![CDATA[P.F.]]></dc:creator>
		<pubDate>Tue, 20 Nov 2012 15:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9565</guid>
		<description><![CDATA[Hi, I also want to save a highscore for my game... there are 2 important questions when using NSUserDefaults.... 1.) when exiting the game and restart - is the highscore not reset to 0 or something like this.... 2.) more important question: when the game is updated via app store? does the highscore remain in the NSUserDefaults? I would be very bad, if after every update, the highscore is cancelled... thank you]]></description>
		<content:encoded><![CDATA[<p>Hi, I also want to save a highscore for my game&#8230; there are 2 important questions when using NSUserDefaults&#8230;. 1.) when exiting the game and restart &#8211; is the highscore not reset to 0 or something like this&#8230;. 2.) more important question: when the game is updated via app store? does the highscore remain in the NSUserDefaults? I would be very bad, if after every update, the highscore is cancelled&#8230; thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anusha Ramadevi</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9502</link>
		<dc:creator><![CDATA[Anusha Ramadevi]]></dc:creator>
		<pubDate>Tue, 25 Sep 2012 05:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9502</guid>
		<description><![CDATA[please send me the reply as soon as possible please.Thanx in advance]]></description>
		<content:encoded><![CDATA[<p>please send me the reply as soon as possible please.Thanx in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anusha Ramadevi</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9501</link>
		<dc:creator><![CDATA[Anusha Ramadevi]]></dc:creator>
		<pubDate>Tue, 25 Sep 2012 05:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9501</guid>
		<description><![CDATA[pls tell me the validation for phone number for a particular textfield]]></description>
		<content:encoded><![CDATA[<p>pls tell me the validation for phone number for a particular textfield</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9496</link>
		<dc:creator><![CDATA[Kirk]]></dc:creator>
		<pubDate>Wed, 19 Sep 2012 20:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9496</guid>
		<description><![CDATA[Huge help! Thank you! ]]></description>
		<content:encoded><![CDATA[<p>Huge help! Thank you! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patricia</title>
		<link>http://icodeblog.com/2008/10/03/iphone-programming-tutorial-savingretrieving-data-using-nsuserdefaults/#comment-9439</link>
		<dc:creator><![CDATA[patricia]]></dc:creator>
		<pubDate>Thu, 24 May 2012 09:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=460#comment-9439</guid>
		<description><![CDATA[How do you know if there are no previous settings defined ?]]></description>
		<content:encoded><![CDATA[<p>How do you know if there are no previous settings defined ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
