开发者

how to show/hide added subview on next navigation page in iphone app?

I am adding google admob banner as subview to appdelegate.now on certain page i don't want that banner,

I am able to remove that using me开发者_JS百科thod defined in appdelegate but when I come back to previous page that banner remains hide.


If u have the reference of the AppDelegate class in the voiceviewcontroller.m, declare and define a method in AppDelegate to remove the admob view and then, call that method from voiceviewcontroller.


admobviewcontroller.view.hidden = YES


[admobviewcontroller removeFromSuperview];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜