I noticed that when my method runs, nothing is printed to the console:
- (BOOL)theTemporyFunction
{
return YES;
NSLog(@"Events");
}
but when I change the order of the statements:
- (BOOL)theTemporyFunction
{
NSLog(@"Events");
return YES;
}
the NSLog()
does run.
Both versions compile, so why doesn't NSLog()
seem to work in the first?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…