简体   繁体   中英

MvvmCross dialog on android, modal on ios

I have a screen with 1 button. When clicking that button, a list of items should be shown (in which the user can select multiple items).

On android, i would like to do this using a dialog. I create a "DialogService" that does this, no problem.

On iOS, however, it seems that the best practice is to display a fullscreen tableview, for example as a modalView. Is it possible to do this without using a custom viewpresenter (eg modalViewPresenter)? I would very much prefer to have identical navigation on both platforms and just have different implementations of "DialogService"

I think trying to make one platform look and act like another is generally not a great idea as things start to look weird for the users.

But if you want to do it anyway I would start by trying to do something like this https://stackoverflow.com/a/29910246/1107580 (it is in objective-c) then trying to bind to the tableview that is in the alertcontroller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM