开发者

iPad application to generate a report

I am trying to create an iPad application which has a FORM, after entering the data, when I save, the data needs to be generated as a report and sent as an email to whomever is required (the email is entered in the FORM). I want to know开发者_如何学运维 if this can be achieved without using web service . What is the flow in this case? Can the email client on iPad be used for this purpose?


You'd want to use an MFMailComposeViewController to display the interface for sending an email. You can pass your data to this view controller's messageBody property as an NSString. See the documentation for details.

The email message can also include an attachment (a PDF or any other file available to the app) using the addAttachmentData:mimeType:fileName: method of the MFMailComposeViewController object. In this particular case, you'd draw the form to a PDF document. Start with the Drawing and Printing Guide for iOS in Apple's documentation for details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜