objective c - UIView cocos2d Support -


i'm following tutorial add banner in app, don't understand thing, here:

"for show bannerview first create uiview , add top of root uiview :

uiview *adview = [[uiview alloc] initwithframe:adrect];           [[ccdirector shareddirector].view addsubview:adview]; 

" add bannerview it:

[[myadmobcontroller sharedcontroller] addbannertoview:adview]; 

where says create uiview, means have create new scene? because don't know uiview (i'm beginner), can give me example of have do?

in order add uiview cocos2d project have add window. director creates , handles main window , cocos2d view. ccdirector inherits cc_viewcontroller equivalent uiviewcontroller. uiview isn't new scene "visible object" added view via ccdirector.

(your eyes)  admobbanner     |   adview     |   window   (device) 

all doing creating box sit on top of window banner fit into.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -