iOS界面淡进淡出的效果
2015-12-28 11:52
387 查看
- (void) showView
{
CGContextRef context =
UIGraphicsGetCurrentContext();
[UIView
beginAnimations:nil
context:context];
[UIView
setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationDuration:3.0];
[[self.viewmy
viewWithTag:0]
setAlpha:0.0f];//淡出
// [[self.viewmy viewWithTag:0] setAlpha:1.0f];//淡进
[UIView
commitAnimations];
}
转载请注明出处:http://blog.csdn.net/sevenquan
{
CGContextRef context =
UIGraphicsGetCurrentContext();
[UIView
beginAnimations:nil
context:context];
[UIView
setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationDuration:3.0];
[[self.viewmy
viewWithTag:0]
setAlpha:0.0f];//淡出
// [[self.viewmy viewWithTag:0] setAlpha:1.0f];//淡进
[UIView
commitAnimations];
}
转载请注明出处:http://blog.csdn.net/sevenquan
相关文章推荐
- iOS开发证书介绍
- iOS正则表达式
- IOS版添加phonegap--融云即时通讯插件教程
- iOS 项目中常见错误分析
- iOS获取当前时间错误
- iOS开发中善用日志记录工具
- iOS推送之远程推送(iOS Notification Of Remote Notification)
- iOS实现滑动返回
- iOS推送之本地推送(iOS Notification Of Local Notification)
- iOS 单元测试
- iOS输入框怎样避免键盘的遮挡
- iOS开发之音频口通信-通过方波来收发数据
- iOS GCD 队列 线程
- iOS--导航栏属性设置的介绍
- iOS CocoaPods详解之 Analyzing dependencies
- [ios][opengles]opengles纹理贴图
- 如何解iOS系统中系统库的dyld缓存
- iOS 开发中遇到的小问题
- 一些iOS笔试题目
- ios 应用游戏快速上架更新