Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-23-2010, 01:22 AM   #6 (permalink)
jagds
JaGDiSH
 
Join Date: Sep 2010
Location: Ahmedabad
Posts: 57
jagds is on a distinguished road
Send a message via Skype™ to jagds
Default NSUserDefaults

- (void)applicationDidFinishLaunchingUIApplication *)application {
projectsArray = [[NSUserDefaults standardUserDefaults] objectForKey:@"projectsArray"];
if (projectsArray == NULL) {
projectsArray = [[NSMutableArray arrayWithObjects:@"New Project", nil] retain];
}
}

- (void)applicationWillTerminateUIApplication *)application {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObjectrojectsArray forKey:@"projectsArray"];
// Save data if appropriate
}


In your code.. What is "projectArray" and "New Array"..?
I am new in iphone development so i dont know how to use NSUserdefaults in code.
I want save array value in it.
jagds is offline   Reply With Quote
 

» Advertisements
» Online Users: 427
14 members and 413 guests
Code.ei, dansparrow, dre, erdinc27, ilmman, JavierEPease, jaychoupham, LEARN2MAKE, n00b, NSString, pbart, raymng, Speed, teebee74
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,590
Threads: 94,083
Posts: 402,777
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JavierEPease
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.