Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-13-2010, 05:46 PM   #1 (permalink)
Registered Member
 
mobileben's Avatar
 
Join Date: Jul 2009
Location: Zgrunturos
Posts: 161
mobileben is on a distinguished road
Default 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!
Arcade Basketball at it's best! Hoops Madness!
VS action on the iPad with Hoops Madness VS!
Sweet trailer here!
mobileben is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 329
9 members and 320 guests
2Apps1Day, akacaj, Domele, michelle, NSString, SLIC, soohyun, Techgirl-52, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,114
Posts: 402,886
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0