viewControllerForPresentingModalView with OpenGL

58 views
Skip to first unread message

EODSoft

unread,
Apr 15, 2010, 3:31:15 PM4/15/10
to AdWhirl Users
In the newest SDK I need to override
viewControllerForPresentingModalView in the AdWhirlDelegate. My app
doesn't have any viewControllers, since it's an openGL app that only
implements a UIView.

Does this mean I can't use AdWhirl without having a root view
controller all of a sudden?

Thanks!
Nikolai

Nigel Choi

unread,
Apr 15, 2010, 5:31:24 PM4/15/10
to adwhir...@googlegroups.com
We require that because Quattro and now AdMob need a viewController to present landing pages and other things after the user clicks. There are two options to solve this:

If you don't use these two networks, you can implement the function and return nil. AdMob actually can work with nil for a controller for now, but that may change in the future.

If you wish to solve this properly, you can try create a view controller and assign your existing UIView as the view controller's view. Then you return the view controller in viewControllerForPresentingModalView. We have seen this done before and it worked.

Let us know how it works out for you.

Nigel.

> --
> To unsubscribe, reply using "remove me" as the subject.

Reply all
Reply to author
Forward
0 new messages