问题
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