2013-07-07 81 views
-5

我是iphone應用程序開發新手。我懷疑當我發送autorelease或保留消息到autorelease池會發生什麼?當我發送autorelease或保留消息到autorelease池時會發生什麼?

NSAutoreleasePool *autoRelease =[ [[ NSAutoreleasePool alloc] init] autorelease]; 

NSAutoreleasePool *autoRelease =[ [[ NSAutoreleasePool alloc] init] retain]; 
+0

它明確提到在NSAutoreleasePool文檔中... –

回答

2

當你做任何的那些東西,它會引發一個例外。你不應該這樣做。

相關問題