是否有可能like'有沒有辦法像線程一樣調用NSNotificationQueue?
-(void) testMethod { [[NSNotificationQueue defaultQueue] enqueueNotification:[NSNotification notificationWithName:@"TEST123" object:self userInfo:parms]postingStyle:NSPostNow coalesceMask:NSNotificationNoCoalescing forModes:nil]; NSLog(@"test123"); //.....
sothat的運行的通知「 - (無效)TestMethod的」去上執行的NSLog,...,沒有這些方法,至極被通知沒叫完。 無論如何解決它,沒有線程?
不清楚你在問什麼。添加更多的代碼,並顯示預期的輸出。 – bbum 2011-06-11 21:44:07