gpt4 book ai didi

IOS:从辅助 View 启动导航 Controller

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:14:40 24 4
gpt4 key购买 nike

在我的应用程序中,我有一个第一个 View Controller ,我以这种方式打开我的第二个 View Controller :

[self presentModalViewController:puntiVendita animated:YES];

但是当我在 secondViewController 中时,我有一个 tableView,我想开始一个导航 Controller ...我该怎么做才能通过代码从 seconviewcontroller 启动一个导航 Controller ?谢谢

最佳答案

只需创建一个导航 Controller :

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:puntiVendita];
[self presentViewController:navigationController animated:YES completion:nil];

关于IOS:从辅助 View 启动导航 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11495064/

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