swift - 如何在swift中从下到上为特定标签设置动画
问题描述
我想从下到上为标签设置动画。
我正在使用此代码
UIView.animate(withDuration: 2, delay: 0, options: [.curveEaseOut],
animations: {
quoteLbl.center.y -= self.view.bounds.height - 100
self.view.layoutIfNeeded()
}, completion: nil)
但是这段代码为整个视图设置动画,我想为 UIViewController 的特定标签设置动画
解决方案
推荐阅读
- azure - 如何将两个项目部署到一个 Web 应用程序中 - 使用子目录部署
- python - python中Klipfolio的曲线拟合算法
- r - 使用 Kable for CSS 时未在邮件中显示表格的网格线
- python - 如何使用 overpy 在 admin_level n+2 上的 foreach 循环中计算每个 admin_level n 的便利设施
- grafana - Grafana Prometheus 错误的默认查询
- android - Android Stetho-Realm:致命例外:StethoWorker-main-5
- javascript - Intl.DateTimeFormat().resolvedOptions().timeZone 给出了错误的时区值
- notepad++ - 批量文本编辑
- javascript - setState 在远程调试器打开时完美运行,但在它关闭时无法正常工作
- email - 如何计算 Google 电子表格中的行数并检查它是否在所需列中包含 emailId 值