1

ユーザーがメールでエラーを報告できるアプリのフォームを作成したいと考えています。フォームの準備ができましたが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 ジェイルブレイク: いいえ その他のもの: ランダム

わかりますか?

4

2 に答える 2

0
NSString *mBodyString = [NSSTring stringWithFormat:@"iOS:%@\n Device:%@\n Jailbreak:%@\n Other:%@",ios.text,iDevice.text,jailbreakstatus.text,otherstuff.text];

[composer setMessageBody:mBodyString isHTML:NO];
于 2012-10-20T12:14:22.540 に答える
0

このようにすることもできます

[composer setMessageBody: [NSString stringWithFormat:@"%@ \n%@ \n%@ \n%@",ios.text,iDevice.text, jailbreakstatus.text, otherstuff.text]isHTML:NO];
于 2012-10-20T12:15:29.780 に答える