Giter Site home page Giter Site logo

Comments (8)

iTofu avatar iTofu commented on May 15, 2024

这个需求其实在 UIViewController 中非常容易实现,在 viewWillLayoutSubviews 方法中隐藏即可……框架也可以实现,等我手上工作松一点可以考虑加上。
另外微信这样做我不认为是一个 Feature,而是一个解决 Bug 的方案。微信的 ActionSheet 在之前的版本中有一个 Bug,转屏后不会重新渲染布局,比如竖屏下 show,旋转到横屏,ActionSheet 并没有横向拓展,而是占了屏幕左半部分,后面的版本中我发现微信改成了转屏时 hide ActionSheet。
这是一个有趣的事情。

from lcactionsheet.

iTofu avatar iTofu commented on May 15, 2024

又捕捉到一次……见下图:
wechatimg74

from lcactionsheet.

cochat avatar cochat commented on May 15, 2024

厉害!!!

from lcactionsheet.

iTofu avatar iTofu commented on May 15, 2024

正常的样式应该是这样的:

wechatimg75

当然并不是说微信的工程师不会写布局……而是这确实是有 Bug 的,interesting……

from lcactionsheet.

iTofu avatar iTofu commented on May 15, 2024

所以当前至少我们这个横竖屏不会出 Bug,因为是 AutoLayout…… 不过这个需求我有空加上了再@你吧。

from lcactionsheet.

cochat avatar cochat commented on May 15, 2024

好的,多谢。。。

from lcactionsheet.

iTofu avatar iTofu commented on May 15, 2024

已实现该需求,见 V 3.1.0

from lcactionsheet.

iTofu avatar iTofu commented on May 15, 2024

Done.

from lcactionsheet.

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.