내 응용 프로그램이 가로 모드입니다. 전자 메일 시트를 열면 세로 방향으로 - 이고 확인 메시지는입니다. 키보드가 가로로 열리므로 세로 전자 메일 시트와 가로형 키보드가 있습니다.이메일 키보드가 가로 방향입니까?
키보드를 세로로 삽입하면 어떻게 고칠 수 있습니까? 왜 "취소"를 누르면 앱으로 돌아 가지 않고 아무 일도 일어나지 않습니까?
//send email log-------------------------
NSLog(@"mail");
[[CCDirector sharedDirector] pause];
picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
//Fill in the email as you see fit
NSArray *toRecipients = [NSArray arrayWithObject:@"[email protected]"];
[picker setToRecipients:toRecipients];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *dataPath = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"BetaTest.txt"];
NSData *data = [NSData dataWithContentsOfFile:dataPath];
[picker addAttachmentData:data mimeType:@"text/txt" fileName:@"BetaTest.txt"];
NSString *emailBody = @"test :) ";
[picker setMessageBody:emailBody isHTML:NO];
[picker setSubject:@"hardware test##"];
//display the view
[[[CCDirector sharedDirector] openGLView] addSubview:picker.view];
[[CCDirector sharedDirector] stopAnimation];