0
没有键盘
我推出MFMailComposeViewController像这样:没有什么是编辑,而且MFMailComposeViewController
ShareViewController *shareView = [[ShareViewController alloc] initWithSubject:subject body:body footer:footer];
shareView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
shareView.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:shareView animated:YES];
初始化看起来这样的:
- (id)initWithSubject:(NSString *)subject body:(NSString *)body footer:(NSString *)footer{
[super init];
self.navigationBar.barStyle = UIBarStyleBlack;
self.mailComposeDelegate = self;
[self setSubject:subject];
body = [NSString stringWithFormat:@"%@ %@", body, footer];
[self setMessageBody:body isHTML:YES];
return self;
}
显示电子邮件窗口,我可以移动光标围绕电子邮件的正文。但是我无法调出键盘,或者将光标移动到To:,CC:或Subject:字段。不知道发生了什么事。这在以前工作,但我最近做了几个用户界面的变化。 “取消”按预期解除了模式。由于“收件人:”字段中没有收件人,因此“发送”未启用。
任何想法?
ShareViewController是MFMailComposeViewController的子类吗?如果是这样,我通常会远离那个;组合控制器是一个黑盒子的系统用户界面,并没有被设计成子类别 - 虽然这可能会起作用,但我会先按照原样使用组合控制器,并在呼叫站点设置所有这些属性初始化后。 – 2010-04-14 02:47:26