2010-12-09 66 views

回答

9

只設置視圖的圖像屬性爲nil:

yourImageView.image = nil; 
+0

我假設yourImageView.image = nil;使用autorelease,但我想現在釋放內存,而不是等待autorelease – Voloda2 2010-12-09 10:22:49

0

設置圖像屬性爲nil應該做到這一點,我還以爲。

請參閱U IImageView class reference文檔中的完整圖像屬性方法簽名。