问题
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