作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我是iOS开发新手,请关注我的问题。
正如我的标题所说,
如何将 UIView
(带动画)隐藏和显示为 UIActionSheet
?
在谷歌搜索,bud没有找到有效的解决方案..
最佳答案
试试下面的代码:
- (IBAction)showTapped:(id)sender {
hideButton.enabled=YES;
showButton.enabled=NO;
[UIView animateWithDuration:.5 animations:^{
subView.frame=CGRectMake(0, 225, subView.frame.size.width, subView.frame.size.height);
}];
}
- (IBAction)hideTapped:(id)sender {
hideButton.enabled=NO;
showButton.enabled=YES;
[UIView animateWithDuration:.5 animations:^{
subView.frame=CGRectMake(0, 480, subView.frame.size.width, subView.frame.size.height);
}];
}
关于iphone - 如何将 UIView 隐藏和显示(动画)为 UIActionSheet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17017299/
我是一名优秀的程序员,十分优秀!