如何在另一个控制器的顶部放置一个浮动模态控制器,并同时与之交互 [英] How to have a floating modal controller on top of another controller and have interaction with them at the same time

查看:101
本文介绍了如何在另一个控制器的顶部放置一个浮动模态控制器,并同时与之交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道什么是将浮动模式控制器放在另一个像这样的控制器之上的最佳方法:

如您所见,此页面的顶部是模式视图.

我可以在下面的控制器类中实现此顶视图,但是我想为其提供单独的控制器,但是我不知道如何呈现该类,因此用户可以同时控制两个控制器.

如果我创建常规的透明类&模态显示它,用户将失去与下层控制器的交互联系.

解决方案

@Shivam Gaur建议的基础.

我创建了一个自定义类&建造了用来处理顶视图的所有东西.

但是我仍然需要处理下级课程中与子视图项的交互,但是值得尝试.

这是此项目的GitHub链接.

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.

解决方案

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.

这篇关于如何在另一个控制器的顶部放置一个浮动模态控制器,并同时与之交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆