开发者

How do I format an iPhone's app email as a 'form' with input fields?

开发者 https://www.devze.com 2023-01-10 15:10 出处:网络
Can somebody explain to me how I can present an email to the iPhone-App-User that has input fields that the User should fill in before sending ??

Can somebody explain to me how I can present an email to the iPhone-App-User that has input fields that the User should fill in before sending ??

Simple Example: The user sh开发者_如何学Goould input their name....

Blockquote

NSString *emailBody = @"\
        <html><head>\
 </head><body>\
 <form>First name:<input type="text" name="firstname" /></form>\
 </body></html>";

[picker setMessageBody:emailBody isHTML:YES];

Blockquote

With the above example I get a compiler error "Expected ',' or ';' before 'text'". Any help would be much appreciated. I tried searching for the answer but didn't get a solution.

Thanks


U first input all details of user in a simple view and store in different different variable; ie.Nsstring *name=name.text;

like that u store inputed data from user.

after that u make a new nsstring *body. in body string u simply append all strings in formated way. finaly in the last u

[picker setMessageBody:body isHTML:YES];

0

精彩评论

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