0

I'm in trouble because I've developed a Hangman Game on the Watch but when the user win and he lock the device at the next start my storyboard info have been update but I don't want them to be updated and I don't know how to do that... If someone can explain me thanks

Maver1ck
  • 181
  • 1
  • 1
  • 6

1 Answers1

0

You have to persist the state of the game in a local database. Then when the user restarts you Watch app, you retrieve the latest state of the game from the database and rebuild the UI in your ExtensionDelegate method applicationDidFinishLaunching.

You could use Apple's CoreData database, but I find the Realm's mobile database much easier to use.

joern
  • 27,354
  • 7
  • 90
  • 105