UITableViewCell显示动画
来源:互联网 发布:iphone软件怎么做 编辑:程序博客网 时间:2024/03/29 22:51
CATransform3D rotation;//3D旋转
rotation = CATransform3DMakeTranslation(0 ,50 ,20);
// rotation = CATransform3DMakeRotation( M_PI_4 , 0.0, 0.7, 0.4);
//逆时针旋转
rotation = CATransform3DScale(rotation, 0.9, .9, 1);
rotation.m34 = 1.0/ -600;
cell.layer.shadowColor = [[UIColor blackColor]CGColor];
cell.layer.shadowOffset = CGSizeMake(10, 10);
cell.alpha = 0;
cell.layer.transform = rotation;
[UIView beginAnimations:@"rotation" context:NULL];
//旋转时间
[UIView setAnimationDuration:0.6];
cell.layer.transform = CATransform3DIdentity;
cell.alpha = 1;
cell.layer.shadowOffset = CGSizeMake(0, 0);
[UIView commitAnimations];
//由小到大渐变
CATransform3D transform = CATransform3DIdentity;
transform = CATransform3DRotate(transform, 0, 0, 0, 1);//渐变
transform = CATransform3DTranslate(transform, -200, 0, 0);//左边水平移动
transform = CATransform3DScale(transform, 0, 0, 0);//由小变大
cell.layer.transform = transform;
cell.layer.opacity = 0.0;
[UIView animateWithDuration:0.6 animations:^{
cell.layer.transform = CATransform3DIdentity;
cell.layer.opacity = 1;
}];
- UITableViewCell显示动画
- UITableViewCell添加动画
- UITableViewCell 的CATransform3D动画
- iOS UITableviewCell相关动画
- UITableViewCell的显示格式
- uitableviewcell中的文字显示
- UITableViewCell的显示格式
- UITableViewCell的显示格式
- UITableViewCell的显示格式
- UITableViewCell 显示类别
- UITableViewCell显示混乱问题
- UITableViewCell的显示错误
- 一个UITableViewCell简单动画效果
- iOS如何显示 UITableViewCell detailTextLabel?
- UITableViewCell 分隔线顶头显示
- UITableViewCell长按显示UIMenuController
- UITableViewCell - 4种显示格式
- iOS UITableViewCell无法显示detailTextLabel
- java到底是值传递还是引用传递
- Microsoft Lync server 2013 企业即时通讯软件
- 第一范式,第二范式,第三范式
- unity中基于NGUI实现一张图片上在某个地方挖个洞
- 给freestdf添加STR和PSR的支持
- UITableViewCell显示动画
- iOS应用架构谈 view层的组织和调用方案
- 栈实验之进制转换
- Oracle 11g服务器安装详细步骤——图文教程
- 文件后缀名批量重命名
- How to: Implement CopyToDataTable<T> Where the Generic Type T Is Not a DataRow
- 线程池的简单实现
- 【小技巧】Matlab读取CSV文件
- 【BZOJ 1008(改)】宗(xie)教 ——数论,快速幂