how to implement non-modal dialog in IOS like this (image attached)?

倾然丶 夕夏残阳落幕 提交于 2019-12-14 02:35:15

问题


Question: How would one best implement non-modal dialog in IOS like this (image attached)? Allow ability to drag move map still and select (long press) another location, which then that detail is populated in the pop-up "non-modal" dialog. Dialog can have ability to "delete" / "add to favourites" etc.

To clarify:

  • I'm asking how to implement the dialogs in the image I have marked "Non Modal Popup"
  • so for the iPad/horizontal regular case, I'm highlighting the dialog would be associated with the ViewController on the right, so therefore in this case the user could still drag the map within VC2, but also access/use VC1 as well

Some notes re my pondering:

  • can UIViewController.present NOT be used here as it is modal? If it can be used what settings to get this working?
  • it not would you recommend using an (a) separate UIViewControllerto implement, and show it up using the manual means of adding a UIViewController, OR (b) is it better to just keep it as a UIView in this case? In either of these cases one would have to do any adaption programmatically?

来源:https://stackoverflow.com/questions/42498872/how-to-implement-non-modal-dialog-in-ios-like-this-image-attached

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!