【发布时间】:2017-06-19 18:32:38
【问题描述】:
我无法从另一个模态视图控制器呈现模态视图控制器。我有第一个 ViewController(vc1),因为我单击 uibutton 以模态方式呈现视图控制器 (vc2),在 vc2 中,我单击 uibutton 以模态方式呈现另一个视图控制器 vc3。所以我没有在 vc2 的顶部看到 vc3。
我在 vc2 中单击按钮的示例代码是:
var vc3 = new UIViewController();
vc3.ModalPresentationStyle = UIModalPresentationStyle.CurrentContext;
((UINavigationController)UIApplication.SharedApplication.Windows[0].RootViewController).VisibleViewController.PresentViewController(vc3, true,null);
【问题讨论】:
标签: xamarin xamarin.ios