开发者

iPhone: is there a way to close an iAd bar?

I'm trying to add iAd to my app right now.

I have it instantiated in my appDelegate, and would like to have a close button to allow the user to close Ad at any time.

开发者_Python百科

How should I go about doing this?


Once a user has clicked on ad the ad will take over the screen. Full screen ads should already have a dismiss icon in the top left corner. They can also be programatically closed by calling the banner view's cancelBannerViewAction.

If you want the small ad to be removable by the user I believe you would have to implement the closing (X) yourself by adding a button into your view, linking it to an IBAction and calling the banner ads removeFromSuperview.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜