I've got a strange problem about [NSString stringWithFormat:@""];
This is my code:
NSString *log;
[NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(someFunction) userInfo:nil repeats:YES];
- (void) someFunction
{
log = [NSString stringWithFormat:@"a very big string here....."];
}
this single line "log = [NSString stringWithFormat];" increases memory very fast.
I can't find any reason why :(
BTW I use ARC.