HorizontalProgress 在swift中动画无法执行..
ench44 opened this issue · comments
ench44 commented
不知道为什么, 求解....
var horizontalProgressView : HorizontalProgressView!
override func viewDidLoad() {
super.viewDidLoad()
horizontalProgressView = HorizontalProgressView()
horizontalProgressView.frame = CGRect(x: 20, y: 40, width: self.view.bounds.width-40, height: 100)
horizontalProgressView.progressLevelArray = ["Lv1", "Lv2", "Lv3", "Lv4", "Lv5"]
horizontalProgressView.lineMaxHeight = 4
horizontalProgressView.pointMaxRadius = 6
horizontalProgressView.currentLevel = 3
horizontalProgressView.animationDuration = 3
horizontalProgressView.textPosition = .bottomPosition
self.view.addSubview(horizontalProgressView)
horizontalProgressView.startAnimation()
}
把执行动画的方法放进 viewwillappear 中也不行...