开发者

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

开发者 https://www.devze.com 2023-03-21 09:25 出处:网络
I am adding google admob banner as subview to appdelegate.now on certain page i don\'t want that banner,

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

精彩评论

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