gpt4 book ai didi

ios - 代码 : how to change storyboard load animation left to right

转载 作者:行者123 更新时间:2023-11-29 02:38:12 25 4
gpt4 key购买 nike

我如何在没有 segue 的情况下从左到右更改 Storyboard动画?

这是我加载 Storyboard的代码:

UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"LoadApplicationStoryboard" bundle:nil];
UIViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"ApplicationController"];
[self presentViewController:vc animated:YES completion:nil];

最佳答案

而不是呈现只是推送你viewcontroller

UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"LoadApplicationStoryboard" bundle:nil];
UIViewController *vc = [mainStoryboard instantiateViewControllerWithIdentifier:@"ApplicationController"];
[[self navigationController] pushViewController:vc animated:YES];

关于ios - 代码 : how to change storyboard load animation left to right,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26096573/

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