2012-11-10 32 views

回答

0

您也應該釋放GADBannerView以及將您的委託清零。所以,如果你這樣做:

adBanner_.delegate = nil; 
// Don't release if you're using ARC. 
[adBanner_ release]; 

當然這是假設你不想在某個點後再次添加在GADBannerView在你的應用程序流。

+0

如果我使用ARC,該怎麼辦?設置adBanner_ =零? – samwize

+1

無論如何,我試過了,它沒有奏效。 – samwize

+0

如果您使用ARC,請不要發佈發佈,不要委託代理應該沒問題。 – RajPara

0

我猜它

[adBanner_ stopAutomaticallyRefreshingContents]; 

而且我認爲它能夠更好地添加代理nilling到(如RajPara建議)。