안녕하세요, iOS SDK를 처음 사용하고 이름, 주소, 이메일 등으로 기본 문의 양식을 만들려고 노력 중입니다 ... 여기까지 내가 한 일이 여기에 있습니다.iOS 문의 양식 문제
'- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)emailButton:(id)sender {
MFMailComposeViewController *mailContoller = [[MFMailComposeViewController alloc]init];
[mailContoller setMailComposeDelegate:self];
NSString *email = @"******@gmail.com";
NSString *email1 = @"*******@hotmail.co.uk";
NSArray *emailArray = [[NSArray alloc]initWithObjects:email, email1, nil];
NSString *message = [[self myTextView]text];
[mailContoller setMessageBody:message isHTML:NO];
[mailContoller setToRecipients:emailArray];
[mailContoller setSubject:@"IT WORKS!"];
[self presentViewController:mailContoller animated:YES completion:nil];
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[[self myTextView] resignFirstResponder];
}
-(void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error
{
[self dismissViewControllerAnimated:YES completion:nil];
}
@end
난 데 문제는 내가 이메일을 통해 함께 전송됩니다 여러 텍스트 필드를 만드는 방법을 알고하지 않는 것입니다. 감사와 도움을 크게 주시면 감사하겠습니다.
안녕하세요, 답장을 보내 주셔서 감사하고, 문제는 내가 답장을 문자열 – ash