I am making a calculation app. I get the results to tableview as array and save them in a viewcontroller. But i couldn’t figure out how to get the time when user make a calculation (button pressed). Can you refer me something?
Not sure what you’re asking? To get the time when the button is pressed, just initialize Date(). What did you want to do with it, show the time when the calculation was made?
Yes I want to show the time when calculation was made. I want this because I will make a screen like History / Log .
Sounds like you want a “time-stamp”? This would be a recorded time when you save values to your table. You would need to use the NSDate class, format it to the date style you want and assign it to your table view cell.
This topic was automatically closed after 166 days. New replies are no longer allowed.