presentModalViewController not presenting!
I'm trying to add support sending mail from within our game. We are currently using a single UIViewController that is pretty low frills. To this, we add an OpenGL View.
I've tried to follow the mail composer sample code, however, when I try to show the modal mail controller, the screen turns black and nothing happens. I overloaded the presentModalViewController method to take a peak at what it is doing. In it, I basically call
[super presentModalViewController:modalViewController animated:animated];
After that call, I NSLog what self.modalViewController and find it is nil.
I have found that if, in my overloaded presentModalViewController I do this:
[self.glView addSubview:modalViewController.view];
The navigation bar of the Mail Composer will show up, but the screen is still black everywhere else. glView is our OpenGL view.
One other caveat here. In my main view controller, I support the MFMailComposeViewControllerDelegate. So I am not sure if that is what is causing problems.
Anyone have any insight as to what is going wrong. Even though my app is OpenGL, I do support other UIKit items no problem, such as the keyboard and UITableViews. Presumably because I am simply just attaching these to my OpenGLView. I am not a iPhone/Mac guy, really more of a PC/OpenGL one. So I do the minimal as far as UIKit and Obj-C/iPhone specific implementations. So admittedly I'm probably not as knowledgeable as I should be on the UIViewControllers. I have read the documentation, but based on that, it is not clear where my problems are stemming from.
Thanks!
__________________
Have a Poketastic time with QuitIt!
|