ios - How to create a UIView? -
i'm following tutorial (https://github.com/mrcapone/myadmobcontroller-ios) 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];
then 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?
the line:
uiview *adview = [[uiview alloc] initwithframe:adrect];
shows how view created. , no uiview not scene.
a view simple building block of ios interface components.. rect angle..
Comments
Post a Comment