objective c - How can I see that a real world time has passed from a stored start date in obj-c/ios? -


The players of my game will be able to plant a tree, which will take 3 hours to grow. When the player logs back, how will I calculate that the tree is now fully developed? The date of the composition of the tree (planted) will be stored on one server, and I will have 3 hours in a second (make sure that it should be the end of NSN) also on the server.

Thanks for any help.

NSDate , and Use :

  NSDate * now = [NSDate date]; Nteininternewallseasjobsplitting = [now timerivalzentet: plantingdate]; If (secondsplugging & gt; secondssprephirettoolyulgro) {...}    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -