Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HorizontalProgress 在swift中动画无法执行.. #3

Open
ench44 opened this issue Aug 27, 2017 · 0 comments
Open

HorizontalProgress 在swift中动画无法执行.. #3

ench44 opened this issue Aug 27, 2017 · 0 comments

Comments

@ench44
Copy link

ench44 commented Aug 27, 2017

不知道为什么, 求解....

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 中也不行...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant