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-18-2009, 02:56 PM   #12 (permalink)
XCHG
Registered Member
 
Join Date: Nov 2008
Posts: 98
XCHG is on a distinguished road
Default

Quote:
Originally Posted by iphonetony View Post
using textview but the items inside the text view is not being saved would like the text to remain after the user logs out the app meaning using the home button. how to do
You have to save your value like this:

Code:
[[NSUserDefaults standardUserDefaults] setValue:@"VALUE" forKey:@"KEY"];
  [[NSUserDefaults standardUserDefaults] synchronize];
And retrieve it like this:

Code:
NSString *Value = (NSString*) [[NSUserDefaults standardUserDefaults] valueForKey:@"KEY"];
Change @"VALUE" to the text inside your UITextView.
__________________
UK Flights
Latest UK Flight information right in your iPhone/iPod Touch. All major UK Airports are available in this brilliant iPhone Application. Download from the iTunes Store.

GuitarMonster: Overdrive
A guitar plugged to an overdrive effect, right in your pocket. Download from the iTunes Store.
XCHG is offline   Reply With Quote
 

» Advertisements
» Online Users: 542
14 members and 528 guests
akacaj, alphy, baramuse, bignoggins, Domele, glennmd, Gudus, ilmman, jaunsmith71, MartinB, ngaikwad, Paul Slocum, rky, Son of a Beach
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,323
Threads: 93,989
Posts: 402,413
Top Poster: BrianSlick (7,978)
Welcome to our newest member, jaunsmith71
Powered by vBadvanced CMPS v3.1.0

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