MvvmCross Monotouch - Fail to bind Properties on a real iPad, but it works on the Simulator

前端 未结 1 1298
轻奢々
轻奢々 2020-12-21 16:28

I am working with MvvmCross Monotouch.

Here is the Binding Code that actually works very well on the iOS Simulator.

{ this, \"{\'Title\':{\'Path\':\'         


        
相关标签:
1条回答
  • 2020-12-21 16:41

    One situation I've seen this type of error occur in is in release builds where the monotouch linker optimises the image size and removes the apparently unused property required for binding.

    To workaround this, I generally include a fake bit of code to trick the linker into including the required properties - e.g. Here's a monodroid sample file which does the same sort of thing:

    https://github.com/slodge/MvvmCross/blob/master/Sample%20-%20BestSellers/BestSellers/BestSellers.Droid/LinkerIncludePlease.cs

    This is one of the disadvantages of using mvvmcross currently - it can lead to larger binary image sizes.

    0 讨论(0)
提交回复
热议问题