ios - How to save users data on last action? -


I have to hide the view in a game, but only in the final level

code:

  - (IBAction) btContinueClick: (ID) sender {if (nCurrentLevel == [first_wordlist count]) {UIAlertView * info = [[UIAlertView alloc] initWithTitle: @ "well done" message: @ " The game is complete! "Representative: Cancel SelfTown title: @" OK "button button: zero, zero]; [Show information]; //// game end message [self shotgun viewer unpacked: true full: zero]; [Saved Stoke Set Object: [Flowweight with NSNumber Number: [First keyword counting] -1] Cake: @ "CurrentLay" "]; [SavedStock writeToFile: path atom: yes]; }}   

If I do not conceal it (hidden matchview), then they will be able to make more coins to countless!

Extra Character: NSMutableArray * firstword; NSMutableArray * firstjumbledword; NSMutableArray * first_1st_WordCount; Int nCurrentWord; IBOutlet UIView * MatchView; NSMutableArray * First Matworld; NSMutableArray * FirstWorldTemach; NSMutableArray * First ImageHead; NSString * stringResult; Int nCurrentLevel; Int nCurrentLevelPoint; As suggested by others, you can always keep your level of data locally using NSUser Defaults.

To write an integer: [[NSUserDefaults StandardUserDefaults] key for setInteger: 2456: @ "Score Level 1"]; Read the value back from NSUserDefaults: NSInteger savedScore = [[NSUserDefaults StandardUserDefaults] fullCorrect: @ "Score Level 1"];

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -