I'm following a tutorial to add banner in my app, but I don't understand a thing, here:
"FOR SHOW BannerView FIRST CREATE A UIView AND ADD IT TO TOP OF ROOT UIView :
UIView *adView = [[UIView alloc] initWithFrame:adRect];
[[CCDirector sharedDirector].view addSubview:adView];
" THEN ADD BannerView TO IT:
[[MyAdMobController sharedController] addBannerToView:adView];
where he says to create a UIView
, It means that I have to create a new scene? because i don't know exactly what is a UIView
(i'm a beginner), someone can give me an example of what i have to do?
The cocos2d view is a view and everything it contains can only be "in" this cocos2d view so you need to create a layer above this cocos2d layer I would suggest if you want to use UIkit to use CCUIViewWrapper
.h
.m
look up github.com CCUIViewWrapper.h CCUIViewWrapper.m