第13月第13天 iOS 放大消失动画
2024-08-29 02:09:33
1.
- (void) animate
{
[UIView animateWithDuration:0.9 animations:^{ CGAffineTransform transform = CGAffineTransformMakeScale(2.5, 2.5);
self.countdownLabel.transform = transform;
self.countdownLabel.alpha = ; } completion:^(BOOL finished) {
if (finished) { if (self.currentCountdownValue == ) {
[self stop];
if (self.delegate) {
[self.delegate countdownFinished:self];
[self removeFromSuperview];
} } else { self.countdownLabel.transform = CGAffineTransformIdentity;
self.countdownLabel.alpha = 1.0; self.currentCountdownValue--;
if (self.currentCountdownValue == ) {
self.countdownLabel.text = self.finishText;
} else {
self.countdownLabel.text = [NSString stringWithFormat:@"%d", self.currentCountdownValue ];
}
}
}
}];
}
https://github.com/simpliflow/SFCountdownView
最新文章
- mono for android 获取手机照片或拍照并裁剪保存
- 山东省第七届ACM省赛------Fibonacci
- 第一个python实例--监控cpu
- JS技术大全(防止复制,粘贴等)
- Android 7.0 UICC 分析(二)
- 利用PBFunc在Powerbuilder中支付宝当面付功能
- iOS - 日期的时间差(某年某月某日的某一天。。。)
- 局域网内搭建git
- POJ 3484
- jQuery中append、insertBefore、after与insertAfter方法注意事项
- Objective-C基础笔记一
- FindStringExact
- 动态规划——区间dp
- 用lsb_release -a 查看linux版本
- Java中的volatile的作用和synchronized作用
- eclipse下启动tomcat访问网址报404错误
- TensorFlow从入门到理解(二):你的第一个神经网络
- 【翻译】Nginx的HTTP负载均衡
- group_concat的使用以及乱码
- u-boot之ARM920T的start.S分析
热门文章
- SCRUM 12.14
- Linux第一周学习总结——计算机是如何工作的
- 《实时控制软件设计》之Automation Studio开发环境
- Data Plane
- 第三次spring冲刺2
- deepin 下mysql编码问题utf8的解决
- 蜗牛慢慢爬 LeetCode 23. Merge k Sorted Lists [Difficulty: Hard]
- array_pop()方法
- Java超类-java.lang.object
- idea中 读取mybatis的配置文件时候 如果放在文件下面 需要加上路径