iOS 点击button 弹出 View ,怎么设置从下往上 弹出的动画
问题描述:
在UIViewController 中有一个按钮,点击该按钮弹出 一个UIView 界面,如何设置弹出的动画效果
答
点击方法中设置UIView的fram,原来的UIView你建立到屏幕下方
[UIView animateWithDuration:1 animations:^{
view.frame = self.view.bounds;
}];