Hello,
Im a new iphone developer so please be patient with me.
The problem is that I have a function like this
-(void)buttonPressed {
NSDate someDate = [[NSDate alloc] init];
NSlog(@"Date: %d", someDate);
}
NOTE: Im not in front of my MAC at the moment so my code may differ slightly.
The issue is that when ever I press the button that fires the buttonPressed method, a time is printed, however, it does not always increase (though it should theoretically). Sometimes is decreases (i.e. goes back in time). Does anybody know of a solution or the problem Im facing?
Thanks
Im a new iphone developer so please be patient with me.
The problem is that I have a function like this
-(void)buttonPressed {
NSDate someDate = [[NSDate alloc] init];
NSlog(@"Date: %d", someDate);
}
NOTE: Im not in front of my MAC at the moment so my code may differ slightly.
The issue is that when ever I press the button that fires the buttonPressed method, a time is printed, however, it does not always increase (though it should theoretically). Sometimes is decreases (i.e. goes back in time). Does anybody know of a solution or the problem Im facing?
Thanks