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
Post a Comment