摘要:
背景 需要做一个扇形带指示器的进度条动画,最初实现的是如下效果 代码如下 func startAnimation() { let width = self.frame.width let bezierPath = UIBezierPath(arcCenter: CGPoint(x: width / 阅读全文
posted @ 2023-07-08 11:10
夏风已过
阅读(74)
评论(0)
推荐(0)
摘要:
问题 工程代码中cell在侧滑删除时,cell会抖动。 在只用masonry代码中,cell会偏移。加上以下代码,cell会消失。 let label = UILabel() label.isHidden = true label.sizeToFit() label.frame = CGRectMa 阅读全文
posted @ 2023-07-08 10:15
夏风已过
阅读(42)
评论(0)
推荐(0)
摘要:
最初的想法 两个UIView直接切换,上代码 let aView = UIView() let bView = UIView() aView.frame = CGRect(x: 100, y: 300, width: 100, height: 100) aView.alpha = 1 aView.b 阅读全文
posted @ 2023-07-08 10:07
夏风已过
阅读(19)
评论(0)
推荐(0)
浙公网安备 33010602011771号