[英]iOS7 present childViewController similar to MFMailComposeViewController for iPad
One of the view controllers in my iPad app is a questionnaire form. 我的iPad应用程序中的一个视图控制器是一个问卷表单。 I'm trying to present it so that it appears in a childViewController modal segue just like the default segue for MFMailComposeViewController.
我试图呈现它,使它出现在childViewController模态segue中,就像MFMailComposeViewController的默认segue一样。
This is the look I am trying to achieve: 这是我想要实现的目标:
The code I am using doesn't seem to be working: 我正在使用的代码似乎不起作用:
AskQuestionViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"AskQuestionViewController"];
[self addChildViewController:vc];
vc.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self.splitViewController presentViewController:vc animated:YES completion:nil];
Try: 尝试:
AskQuestionViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"AskQuestionViewController"];
vc.modalPresentationStyle = UIModalPresentationPageSheet;
[self.splitViewController presentViewController:vc animated:YES completion:nil];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.