ios - Progress View stuttering when animating with loop -


i'm trying update progress view using property observer updated in loop sleep.

see tutorial - http://www.ioscreator.com/tutorials/progress-view-tutorial-in-ios8-with-swift

i'm having same problem 1 of comments.

the animation stuttering. jumps 0 64% , 100%.

any idea how can create smoother animation?

stuttering progress bar

try replacing sleep(1) sleep(arc4random_uniform(10)). check out example apple - https://developer.apple.com/library/ios/samplecode/uicatalog/listings/swift_uicatalog_progressviewcontroller_swift.html

hope helps.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -