iAd 转入 OpenGL
我目前有一个基于 OpenGL 的游戏,我正在尝试将 iAd 集成到其中。
我当前的初始化程序代码如下所示
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[application setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO];
// Now show the status bar, but animate to the style.
[application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
[glView startAnimation];
}
因此,我创建了一个实现
的 UIViewController
,但我不确定如何将两者“连接”在一起。我尝试将我的 viewController
添加到窗口的子视图中,但没有显示广告,并且它只是使我在屏幕上的任何点击都不会被捕获。
I current have an OpenGL based game and I'm trying to integrate iAd into it.
My current initializer code looks like this
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[application setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO];
// Now show the status bar, but animate to the style.
[application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
[glView startAnimation];
}
So, I've created a UIViewController
which implements <ADBannerViewDelegate>
but I'm not sure how to 'connect' the two together. I've tried just adding my viewController
to the window's subView but no ads display, and it just makes it so none of my taps on the screen are captured.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论