It does not help in your case, but you still have not reached the point where 
it will cause a problem, since your mail controller is not yet presented.

However, Mike is right, you surely need to declare your mail controller as a 
class variable. You will get a crash when the runtime will try to call your 
HandleMailFinished handler.

Now, the only thing that I suspect could cause this kind of behavior is if you 
are doing something in your controller's ViewWillDisappear method. Have you 
implemented this, removing any views perhaps in it? Presenting a modal view 
controller causes the "parent" controller's ViewWillDisappear method to be 
called. If not, I cannot think of something else that would cause this behavior.

Dimitris Tavlikos
Software Developer
Email: [email protected]
Twitter: http://twitter.com/#!/dtavlikos
Blog: http://software.tavlikos.com






On Jul 31, 2011, at 5:02 PM, Anita V. wrote:

> That doesn't help :( This is driving me crazy, I don't understand why it's
> not working. 
> 
> If I set
> 
> _mail.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve;
> 
> , then when I press my mail button, the view dissolves back into its
> superview. So, instead of displaying the mail view,
> PresentModalViewController just removes the current view from its superview.
> 
> Does anyone have any idea why this might be?
> 
> Thanks,
> Anita
> 
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Trouble-sending-mail-from-within-my-app-tp3706782p3707809.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to