The date is always ignored
Posted
by TheLearner
on Stack Overflow
See other posts from Stack Overflow
or by TheLearner
Published on 2010-05-31T15:11:43Z
Indexed on
2010/05/31
15:33 UTC
Read the original article
Hit count: 138
objective-c
I cannot understand why the date is never set in the title - it's always ignored and if I swap around the date and the title, then the title is ignored!
-(id)initWithCoordinate:(CLLocationCoordinate2D)c title:(NSString *)t
{
[super init];
coordinate = c;
NSDate *today = [NSDate date];
[self setTitle:(@"%@%@", [today description], t)];
//[today release];
return self;
}
© Stack Overflow or respective owner