菜鸟教程小白 发表于 2022-12-11 19:48:02

ios - swift中的坐标布局(如android)有什么相似之处?


                                            <p><p>我只想在我的应用程序中添加动画,例如 tinder 以显示个人资料描述页面。在android中,它在 Material 设计中的默认功能是使用坐标布局类。任何人都知道如何在我的应用程序中提供相同的动画?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><blockquote>
<p>The main appeal of the CoordinatorLayout is its ability to coordinate
the animations and transitions of the views within it through coordinates</p>
</blockquote>

<p>iOS 中没有这样的布局类型</p>

<p>iOS 布局更简单,给你更多控制,你需要做的是使用一些 UIView 并通过约束来操作它们,因为约束布局与动画完美配合</p>

<p>或者如果你想制作一个单独的东西,你可以添加 UIContainer,然后添加你的 UIViewController 的</p>

<p>有一个用于动画自动布局约束的简单教程:
<a href="https://useyourloaf.com/blog/animating-autolayout-constraints/" rel="noreferrer noopener nofollow">https://useyourloaf.com/blog/animating-autolayout-constraints/</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - swift中的坐标布局(如android)有什么相似之处?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/44361427/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/44361427/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - swift中的坐标布局(如android)有什么相似之处?