Time for action – using native controls from MobGUI
Right-click on the little image of the iPhone in the MobGUI window, and make sure that you're on the Native iOS Controls set.
Go to the Email card and drag three Text controls and one Multiline Text control from the Native iOS Controls set in the MobGUI window.
Name the Text controls as
To,CC, andSubject, and the Multiline Text control asBody. The size of theBodyshould be made big enough to enter a few lines of text.As you create each field, note that you can set the keyboard type. Set it to
Emailfor theToandCCfields.From
iOS Controls 1set and drag two Buttons onto the card window. Name oneDone, and the otherSend. You should have something that looks like the following screenshot:
When we test the app and touch one of the fields, the keyboard overlay will appear. We'll use the
Donebutton as a way to hide the keyboard. Add a focus line to thetouchEndhandler of theDonebutton script:on touchEnd pId mobGUIUntouch the long...