Ios 如何获取MFMailComposeViewController';谁的消息正文?
我需要设置MFMailComposeViewController消息体视图的大小。 我怎样才能看到风景 以下是创建电子邮件发件人的代码Ios 如何获取MFMailComposeViewController';谁的消息正文?,ios,email,Ios,Email,我需要设置MFMailComposeViewController消息体视图的大小。 我怎样才能看到风景 以下是创建电子邮件发件人的代码 MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init]; controller.mailComposeDelegate = self; [controller setSubject:titleForEmail]; [controller setMes
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:titleForEmail];
[controller setMessageBody:textForEmail isHTML:isHtml];
[parentController presentModalViewController:controller animated:YES];
[controller release];
你没有。引述:
重要提示:邮件合成界面本身是不可自定义的,不能由应用程序修改
如果你真的搞砸了,而且审查者注意到了,苹果会拒绝你的申请。你不会。引述:
重要提示:邮件合成界面本身是不可自定义的,不能由应用程序修改
如果你真的弄乱了它,并且审查者注意到,苹果将拒绝你的应用程序。你可能会因此被拒绝,但它不是使用任何API,而是通过子视图循环。我正在尝试
- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error
{
for (UIView *subview in [controller.view subviews]) {
for (UIView *myview in [subview subviews]) {
for (UIView *theview in [myview subviews]) {
if ([NSStringFromClass([theview class]) isEqualToString:@"MFMailComposeView"]) {
for (UIView *aview in [theview subviews]) {
for (UIView *thisview in [aview subviews]) {
if ([NSStringFromClass([thisview class]) isEqualToString:@"MFComposeScrollView"]) {
for (UIView *bview in [thisview subviews]) {
if ([NSStringFromClass([bview class]) isEqualToString:@"MFComposeTextContentView"]) {
NSLog(@"%@", ((UITextView *)bview).text);
}
}
}
}
}
}
}
}
}
}
更新
这在iOS6中被打破。试图找到解决方法。您可能会因此被拒绝,但这不是使用任何API,而是在子视图中循环。我正在尝试
- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error
{
for (UIView *subview in [controller.view subviews]) {
for (UIView *myview in [subview subviews]) {
for (UIView *theview in [myview subviews]) {
if ([NSStringFromClass([theview class]) isEqualToString:@"MFMailComposeView"]) {
for (UIView *aview in [theview subviews]) {
for (UIView *thisview in [aview subviews]) {
if ([NSStringFromClass([thisview class]) isEqualToString:@"MFComposeScrollView"]) {
for (UIView *bview in [thisview subviews]) {
if ([NSStringFromClass([bview class]) isEqualToString:@"MFComposeTextContentView"]) {
NSLog(@"%@", ((UITextView *)bview).text);
}
}
}
}
}
}
}
}
}
}
更新
这在iOS6中被打破。试图找到解决方法。仅供参考,我没有因为这样做而被拒绝。你找到ios 6和7的解决方案了吗?没有。因为XPC,我认为在ios 6/7中不可能。仅供参考,我没有因为这样做而被拒绝。你找到ios 6和7的解决方案了吗?没有。因为XPC,我认为在ios 6/7中不可能。