博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
旋转动画 uiview animation rotate
阅读量:4109 次
发布时间:2019-05-25

本文共 442 字,大约阅读时间需要 1 分钟。

#import <QuartzCore/QuartzCore.h>

[UIViewbeginAnimations:@"animationID"context:nil];

[UIViewsetAnimationDuration:0.5f];

[UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];

[UIViewsetAnimationRepeatAutoreverses:NO]

indicateImageView.layer.anchorPoint=CGPointMake(0.5,0.5);  

 indicateImageView.transform =CGAffineTransformMakeRotation([selfradians:0]);

[UIViewcommitAnimations];

-(double)radians:(double)degrees 

{

return degrees *M_PI/180;  

}

转载地址:http://ijosi.baihongyu.com/

你可能感兴趣的文章
LeetCode第45题思悟——跳跃游戏(jump-game-ii)
查看>>
LeetCode第46题思悟——全排列(permutations)
查看>>
LeetCode第47题思悟—— 全排列 II(permutations-ii)
查看>>
LeetCode第48题思悟——旋转图像(rotate-image)
查看>>
驱动力3.0,动力全开~
查看>>
记CSDN访问量10万+
查看>>
Linux下Oracle数据库账户被锁:the account is locked问题的解决
查看>>
极客算法训练营学习笔记(一)
查看>>
记CSDN访问20万+
查看>>
Windows 环境下Webstorm 2020.3 版本在右下角找不到Git分支切换部件的一种解决方法
查看>>
Electron-Vue项目中遇到fs.rm is not a function问题的解决过程
查看>>
飞机换乘次数最少问题的两种解决方案
查看>>
有向无回路图的理解
查看>>
设计模式中英文汇总分类
查看>>
MFC实现五子棋游戏
查看>>
WPF实现蜘蛛纸牌游戏
查看>>
单例模式
查看>>
工厂方法模式
查看>>
模板方法模式
查看>>
数据结构之队列、栈
查看>>