Giter Site home page Giter Site logo

Comments (7)

ddongdong521 avatar ddongdong521 commented on May 14, 2024 1

我现在的实现方案是用present 使用的push动画,但是这样有个问题就是,我们在评论中可能会跳转的页面比较多,很多页面之前都是push进入的,导致返回按钮的点击事件可能要重写好多

from hwpanmodal.

HeathWang avatar HeathWang commented on May 14, 2024

#30
push到下一层的时候,直接把view的frame设置成全屏不生效吗?我没有具体实践过。

from hwpanmodal.

HeathWang avatar HeathWang commented on May 14, 2024

你如果只是单层的显示浮层弹框,不像知乎那样点“查看回复”还有一层,可以使用HWPanModalContainerView直接弹出view,这样不影响你的视图栈,然后点击用户头像在push就是全屏的。

from hwpanmodal.

ddongdong521 avatar ddongdong521 commented on May 14, 2024

你如果只是单层的显示浮层弹框,不像知乎那样点“查看回复”还有一层,可以使用HWPanModalContainerView直接弹出view,这样不影响你的视图栈,然后点击用户头像在push就是全屏的。

我们这个评论就是全都仿照知乎做的,所以没用一个view做

from hwpanmodal.

HeathWang avatar HeathWang commented on May 14, 2024

我现在的实现方案是用present 使用的push动画,但是这样有个问题就是,我们在评论中可能会跳转的页面比较多,很多页面之前都是push进入的,导致返回按钮的点击事件可能要重写好多

这个不失是个好的办法,你们的navigationBar是自定义view还是系统的?
我再尝试用自定义navBarView解决你的问题

from hwpanmodal.

HeathWang avatar HeathWang commented on May 14, 2024

@ddongdong521
我已经把相关示例push到master分支,请拉取最新代码,参考知乎评论那个例子。

from hwpanmodal.

ddongdong521 avatar ddongdong521 commented on May 14, 2024

好的 谢谢啦

from hwpanmodal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.