私は、とてもシンプルであるべきだと思われるものにハマってしまったようです!
ユーザーが NSUserDefaults に入力した文字列を電子メールの本文に入力するにはどうすればよいですか?
基本的に、「YES」などの文字列を NSUserDetaults に入力するボタン else ware があります。メール本文をこれらの保存された文字列にするにはどうすればよいですか。
これは私が現在持っているコードです:
- (IBAction)buttonPressed:(id)sender {
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"SYS"];
[controller setMessageBody:@"How do I make this the content of NSUSERDEFAULTS?" isHTML:NO];
controller.navigationBar.barStyle = UIBarStyleBlack;
[self presentViewController:controller animated:YES completion:nil];
どんな助けでも大歓迎です!
ありがとう!
コードを使用すると、文字列は次のように表示されます: はい、いいえ、たぶん、いいえ、
それらを表示するためにフォーマットを変更するにはどうすればよいですか
はい、
いいえ、
多分、
とんでもない。
お時間をいただきありがとうございます。