0
此代碼的工作,並postSpamListUpdatedNotification被稱爲performSelector被稱爲但不performSelector:afterDelay
- (void) postSpamListUpdatedNotification
{
[NIDPrivateUtils postNotification:kNIDSpamListsUpdated andError:nil];
}
[self performSelector:@selector(postSpamListUpdatedNotification) withObject:nil];
但如果我把它改成這樣,那麼postSpamListUpdateNotification不會被調用。爲什麼?
[self performSelector:@selector(postSpamListUpdatedNotification) withObject:nil afterDelay:2.0];