This Link gives a wonderful example showing an iPad with a formsheet email dialog window. The code below it works to create a window. But, is there a way to simply bring the email dialog up in as a formsheet window, i.e. not full screen?
I've messed with various code variations and nothing seems to work. I "could" create the entire window like that, but it seems strange there isn't a email dialog option OR a native option since in my using the iPad I think most if not all of the time this window is a Formsheet style.
Any thoughts besides manually creating the email window myself.
1 Answer
Accepted Answer
Hi Lee
You should find the example for emaildialog will do it for you. If you are asking for an ipad window that appears exactly as the example one does from your link then the code below will do that for you - taken straight from the link I provided.
var emailDialog = Ti.UI.createEmailDialog() emailDialog.subject = "Hello from Titanium"; emailDialog.toRecipients = ['foo@yahoo.com']; emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>'; var f = Ti.Filesystem.getFile('cricket.wav'); emailDialog.addAttachment(f); emailDialog.open();Please note in portrait it will fill the entire screen, in landscape it will show as you have seen in the screen shot.
Your Answer
This question has been locked and cannot accept new answers.