i'm developing a tool for car driving which saves GPS Data, Accelerometer Data and Time for later use.
Acceleration is the least Priority, though.
All i need is a little code example so i can get the current system time printed as an updating clock in Xcode because i want it to save my data as fast and as often as possible :>
Thanks in advance for any answers :)
h4wkeye
To get the current system time use
NSDate* currentDate = [NSDate date];
and To get the string representation of NSDate
- (NSString *)description
Then Use below
NSString* dateInString = [currentDate description];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With