简体   繁体   English

Swift UIView动画

[英]Swift UIView Animations

Hi I have a basic View Controller with an ADD button on the right side of the navigation bar and I have UIView which is called Add View. 嗨,我有一个基本的View Controller,在导航栏的右侧有一个ADD按钮,我有一个UIView,它称为Add View。 The UIView is a small window that shows up when the ADD button is pressed. UIView是一个小窗口,当按下ADD按钮时会显示该窗口。 When the Add View shows up, I'm trying to add some kinda of animation. 当“添加视图”出现时,我正在尝试添加某种动画。 I have no idea on how to go about doing that. 我不知道该怎么做。 I included a picture of my storyboard. 我包括了我的情节提要的图片。 Any help is appreciated. 任何帮助表示赞赏。 Thanks. 谢谢。

这基本上就是我的情节提要。

Use this method , in options of type UIViewAnimationOptions there is a constant value of ShowHideTransitionViews 使用此方法 ,在UIViewAnimationOptions类型的选项中, ShowHideTransitionViews为常数

If you're new to animation, feel free to study this Animation Documentation , it tells you what you can animate and what can not, also depicting some methods example. 如果您不熟悉动画,请随时阅读此动画文档 ,它告诉您可以进行动画处理的内容和不能进行动画处理的内容,并描述了一些方法示例。 Ray Wenderlich's guide is helpful too Ray Wenderlich的指南也很有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM