本文介绍了MvvmCross:如何将MvxTableViewController与nibname一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看不到为MvxTableViewController取一个nibname的构造函数.我确实在MvxViewController上看到了它.
I don't see the constructor that takes a nibname for the MvxTableViewController. I do see it for MvxViewController.
推荐答案
基于笔尖的构造函数当前未由MvvmCross公开-因此,您目前只能通过以下方式进行此操作:
The nib-based constructor isn't currently exposed by MvvmCross - so you can only currently do this by:
- 分叉源代码并构建自己的副本
- 将源代码复制到您自己的类中并使用它们-这不是一件大事-您只需要自己的以下副本:
- https://github.com. com/slodge/MvvmCross/blob/v3/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTableViewController.cs
- https://github.com. com/slodge/MvvmCross/blob/v3/CrossCore/Cirrious.CrossCore.Touch/Views/MvxEventSourceTableViewController.cs
- forking the source code and building your own copy
- copying the source code into your own classes and using those - this isn't a big chore - you'd just need your own copies of:
- https://github.com/slodge/MvvmCross/blob/v3/Cirrious/Cirrious.MvvmCross.Touch/Views/MvxTableViewController.cs
- https://github.com/slodge/MvvmCross/blob/v3/CrossCore/Cirrious.CrossCore.Touch/Views/MvxEventSourceTableViewController.cs
显然,您也可以仅将常规
MvxViewController
与仅包含单个UITableView
Obviously you can also just use a regular
MvxViewController
with a Nib that just contains a singleUITableView
这篇关于MvvmCross:如何将MvxTableViewController与nibname一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!