gpt4 book ai didi

ios - 带有 MVVM Light 的选项卡栏 Controller 导航 Xamarin

转载 作者:可可西里 更新时间:2023-11-01 04:56:47 25 4
gpt4 key购买 nike

iOS 标准 MVVM Light Storyboard模式是

导航 -> View Controller -> 其他 View

但我想使用标签栏 Controller 作为 Root View ,到这里为止没有任何问题,但是当我想从该标签 View 导航时,在一个新的 View Controller 中我丢失了标签栏,并且 View 加载就像标准 View ,不像“选项卡式” View 。

我尝试创建以下架构

TabBarController -> 导航 -> View -> 第二个 View

但是 mvvm 灯光模式将导航 Controller 放在 SimpleIoc 中,我只能创建一次。

我必须如何设置 Storyboard以确保我在所有 View 中都有导航和标签栏?

最佳答案

到目前为止,我决定对 ViewModel 和 View 使用 mvvmlight IoC,对于导航,我在 PageController 的代码隐藏和 segue 中使用自定义方法

关于ios - 带有 MVVM Light 的选项卡栏 Controller 导航 Xamarin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32169978/

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