NSDate *now = [NSDate date];
"Initializers", on the other hand, require alloc:
NSDate *since = [[NSDate alloc] initWithTimeInterval:0 sinceDate:someOtherDate];
Code, computers, and other nonsense. All powered by iguanas, of course.
NSDate *now = [NSDate date];
NSDate *since = [[NSDate alloc] initWithTimeInterval:0 sinceDate:someOtherDate];
No comments:
Post a Comment