How to have a floating modal controller on top of another controller and have interaction with them at the same time

吃可爱长大的小学妹 提交于 2019-12-13 08:59:24

问题


I want to know what is best approach for having a floating modal controller on top of another controller like this image:

As you see, top section of this page is a modal view.

I can implement this top view in the below controller class but I want to have a separate controller for it, but I don't know how to present that class so user have control of the both controllers in same time.

If I create a regular transparent class & present it modally, user will lost interaction contact with the lower controller.


回答1:


Base of @Shivam Gaur suggestion.

I created a custom class & built every thing for handling that top view in there.

But still I need to handle interactions with subview items in my lower class but its worth the try.

Here is this GitHub link of this project.



来源:https://stackoverflow.com/questions/56981951/how-to-have-a-floating-modal-controller-on-top-of-another-controller-and-have-in

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