MvvmCross and Xcode Sale

Is xcode storyboard supported in mvvmcross v3?

If yes, how? There is an example? 

thanks

+6
source share
2 answers

MvvmCross is not well suited for storyboard

The reason is that Storyboards have their own logic (e.g. Segue navigation), which really belongs inside the actions in MvvmCross ViewModels.

With that said ... if you just want to use data binding, then you can ... simply:

  • add links to the MvvmCross assembly
  • change your storyboard application so that it runs the minimum installation code
  • use the base Mvx*ViewController classes instead of the UI*ViewController
  • and similarly use the MvxTableViewCell (or similar) for the base class for any TableViewCell used.

There is currently no documentation for this ... but there is one sample - placed under the very strange name 'eh' - https://github.com/slodge/eh - this is just a simple pair of views of the master part, and you need to create it against latest binaries - e.g. https://github.com/slodge/MvvmCross-Binaries/tree/master/XS-iOS-Mac

+3
source

Not sure if this is true, but Stewart and others better answered IMHO this question when asked later. See Answers to this question. Support for MVVMCross for Xamarin.iOS storyboard.

I answer here only to tie Q & A

UPDATE MVVMCross 3.5.1 now has the FromStoryboard attribute, so you can have some views that are based on the Storyboard. See http://slodge.blogspot.co.uk/2015/05/351-release.html

thanks

Pat

+2
source

Source: https://habr.com/ru/post/944061/


All Articles