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

How to check animation is starting? #86

Closed
ghost opened this issue Oct 23, 2016 · 4 comments
Closed

How to check animation is starting? #86

ghost opened this issue Oct 23, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 23, 2016

Hi everybody
I can't find any method/property for check animating start in view? (like isAnimating)
for example start animating in viewWillAppear function and i want when tableview is reloading and finish work in didEndDisplaying func; stop animating...
Thank's

@ninjaprox
Copy link
Owner

@GHASIM: Please check README first. Let me know if it's what you're looking for.

@ghost
Copy link
Author

ghost commented Oct 24, 2016

This solution is very bad. I had to define
var activityIndicatorView = NVActivityIndicatorView(frame: frame, type: type, color: color, padding: padding)
in viewDidLoad and when can't use activityIndicatorView in another function ! if define local variable
let activityIndicatorView = NVActivityIndicatorView()
code is error: Cannot invoke initializer for type 'NVActivityIndicatorView' with no arguments
I want check animating like UI blocker func. like this code:
if isAnimating{}
Thanks

@ninjaprox
Copy link
Owner

@GHASIM: Please give snippet, it helps figure out solution for your use case.

@ninjaprox ninjaprox reopened this Oct 24, 2016
@ninjaprox
Copy link
Owner

Close this, reopen if need be.

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