全屏显示的模态视图控制器、mvvmcross、xamarin.ios

问题描述

我可以通过显示具有 MvxModalPresentation 属性的 MvxViewController 来模拟模态视图控制器,但它不响应设置其内容大小或视图高度。演示文稿始终是全帧高度减去几个像素 - 请参见屏幕截图。 有一个属性 PreferredContentSize,但在 MvvmCross documentation 中它声明它仅适用于 iPad。

[MvxModalPresentation(
     ModalPresentationStyle = UIModalPresentationStyle.FormSheet,WrapInNavigationController = true
 )]
public partial class logoutViewController : BaseViewController<logoutviewmodel> ...

我尝试设置各种 UIModalPresentationStyle - 这无济于事,视图以完全相同的方式呈现。有没有办法在 2021 年之前在 MVVMCross 中实际实现模态视图?这似乎是一项微不足道的任务,但网络上没有任何内容..

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)