ユーザーがメールでエラーを報告できるアプリのフォームを作成したいと考えています。フォームの準備ができましたがUITextfields
、メッセージ本文として複数を設定できません。
これが私のコードです:
.h
IBOutlet UITextField *ios;
IBOutlet UITextField *iDevice;
IBOutlet UITextField *jailbreakstatus;
IBOutlet UITextField *otherstuff;
.m
MFMailComposeViewController *composer = [[MFMailComposeViewController alloc] init];
[composer setMailComposeDelegate:self];
if ([MFMailComposeViewController canSendMail]) {
[composer setToRecipients:[NSArray arrayWithObjects:@"david.goelzhaeuser@me.com", nil]];
[composer setSubject:@"Feedback"];
[composer setMessageBody: ios.text,iDevice.text, jailbreakstatus.text, otherstuff.text isHTML:NO];
[composer setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
[composer setModalPresentationStyle:UIModalPresentationFormSheet];
[self presentModalViewController:composer animated:YES];
}
私はすでに解決策を求めてウェブを検索しましたが、私を助けるものは何も見つかりませんでした. 今、あなたは私の唯一の希望です:)
PS:次のようにすることは可能ですか:
UILable: UITextfield UILable: UITextfield UILable: UITextfield UILable: UITextfield
基本的にこの方法:
iOS: 6.0 iDevice: iPhone 4 ジェイルブレイク: いいえ その他のもの: ランダム
わかりますか?