Hi,
I am using Admobview in my game.
I am showing this view on main menu layer.But going to inagme layer I dont want to show it by discarting it. So how can I do this?
I also not able to change the position of this admobview. It shows on top only.
Thanks.
Waiting for reply.
-BMR
remove AdMobView view
(4 posts) (3 voices)-
Posted 2 years ago #
-
To remove it you can do it by doing:
[adView removeFromSuperView];
To move it around check this:
http://www.cocos2d-iphone.org/wiki/doku.php/tips:genericPosted 2 years ago # -
Hi,
Thanks for reply.
Actually I am doing something like:
...
@interface MenuLayer : Layer <AdMobDelegate>
...and in implementation
I included all neccessory file and put
AdMobView *adMobAd = [AdMobView requestAdWithDelegate:self];
[[[Director sharedDirector] openGLView] addSubview: adMobAd];
in init.But when I am removing this Layer the admob view is not removed.
And my selecting MenuLayer multipletimes it crashes as above code will init AdMobView manytimes.Please can you provide me sample code to display admobview on current Layer class.
-Thanks.
-BMRPosted 2 years ago #
Reply
You must log in to post.