yannickl / YLProgressBar

UIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics
http://yannickloriot.com/library/ios/ylprogressbar/
MIT License
1.28k stars 186 forks source link

Getting error when iam trying to import YLprogress bar in my code. #19

Closed subinrevi closed 9 years ago

subinrevi commented 9 years ago

Hi i ran the sample code and its working fine, but when i imported the YLProgressBar to my project iam getting an error. Do i need to install Cocoa Pods? The error in .h file shows "Funcion definition is not allowed here" . I am using Xcode 6.0.1

subinrevi commented 9 years ago

Hi that issue was fixed the UIKit.h was not there.

subinrevi commented 9 years ago

Another question can we change the black background of the progress bar?

yannickl commented 9 years ago

Hi,

Sorry for the late. Yes you can change the track color by modifying the trackTintColor property.

subinrevi commented 9 years ago

Hi Thanks for the reply. Is there an option to stop the animating progress color and keep it without animation? Also when i try to change the trackTintColor to light grey a black line appears on top border of the progress bar. When i tested it in your sample code also it was there. You can see it clearly when the "trackTintColor" is white.

yannickl commented 9 years ago

Hi,

you can stop the animation by setting the stripesAnimated property. To remove the grey line you have to disable the gloss effect thanks to the hideGloss property.

subinrevi commented 9 years ago

Hi,

Thanks for your swift reply. I was able to change both those issues and its working fine. Would like to let you know theres a minor design issue in it. A thin dark line appears above the top corner of the progress bar. Its visible only when we use light colors for the track color property. I have tested it in your sample code as well. Attached a screenshot with this. Please check.

screen shot 2015-01-13 at 12 18 56 pm

Thanks Subin.

yannickl commented 9 years ago

Hi,

Have you tried with the last version (3.5.1)? I have fixed this issue in the last release.

subinrevi commented 9 years ago

No I havent. Will try

Thanks.

subinrevi commented 9 years ago

Hi, Checked the latest code and its fine :)

yannickl commented 9 years ago

Great! I close the issue. :)