MvvmCross: How do I use the MvxTableViewController with a nibname?

徘徊边缘 提交于 2020-02-05 02:34:08

问题


I don't see the constructor that takes a nibname for the MvxTableViewController. I do see it for MvxViewController.


回答1:


The nib-based constructor isn't currently exposed by MvvmCross - so you can only currently do this by:

  • 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

Obviously you can also just use a regular MvxViewController with a Nib that just contains a single UITableView



来源:https://stackoverflow.com/questions/16739767/mvvmcross-how-do-i-use-the-mvxtableviewcontroller-with-a-nibname

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!