gpt4 book ai didi

iphone - 在另一个 View 中呈现 modalViewController

转载 作者:行者123 更新时间:2023-11-28 22:53:01 26 4
gpt4 key购买 nike

我实现了一个类似 facebook 的滑动菜单。当我滑动导航栏时,“设置” View 将出现在下方。

问题是当我尝试从“设置” View 中呈现模态视图时。我尝试实现一个反馈系统 (MFMailComposeViewController),但如果我从下面的设置 View 中显示它,一半的模态视图将被覆盖 View (rootView Controller )阻挡。

我该怎么做才能解决这个问题?

提前致谢

masterViewController = [[MatchTable alloc] initWithNibName:@"MatchTable" bundle:nil];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController];

self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];

Settings *sideMenuViewController = [[Settings alloc] initWithNibName:@"Settings" bundle:nil];

// make sure to display the navigation controller before calling this
[MFSideMenuManager configureWithNavigationController:self.navigationController sideMenuController:sideMenuViewController];

最佳答案

好吧,我这样做是为了给它一种动画效果。你可以选择任何你喜欢的其他效果:

        [UIView beginAnimations:@"Flip" context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:appDelegate.window.rootViewController.view cache:YES];
[appDelegate.window.rootViewController.view addSubview:@"Your View Object"];
[UIView commitAnimations];

关于iphone - 在另一个 View 中呈现 modalViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11466602/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com