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

Indicator text doesn't show #28

Closed iBCode closed 9 years ago

iBCode commented 9 years ago

Xcode 6.3.2, using YLProgressBar in storyboard, neither YLProgressBarIndicatorTextDisplayModeProgress nor YLProgressBarIndicatorTextDisplayModeTrack displays the default text. Here is the code below for reference: // Initialize progress bar self.progressBar.progressTintColor = [UIColor greenColor]; self.progressBar.indicatorTextDisplayMode = YLProgressBarIndicatorTextDisplayModeTrack; self.progressBar.behavior = YLProgressBarBehaviorIndeterminate;

yannickl commented 9 years ago

Where the problem occurs? On the storyboard or in the simulator/device?

I'll check it tomorrow.

iBCode commented 9 years ago

On the storyboard, simulator: iPhone 6, iPhone 4s (7.1) and iPhone 4s (8.3). And the demo didn't show percentage text occasionally when I toggled between YLProgressBarIndicatorTextDisplayModeTrack. How come?

mattilla commented 9 years ago

It occurred to me, too. Xcode 6.3.2, using YLProgressBar in storyboard. The '' YLProgressBarIndicatorTextDisplayModeProgress '' displays no text indicator while the " YLProgressBarIndicatorTextDisplayModeTrack " displays as the attached image: img_3126

yannickl commented 9 years ago

I tested it with Xcode 6.3.2 and I can't reproduce the issue. Can you create a minimal example project that produce the glitch?

iBCode commented 9 years ago

Here is the quick demo to reproduce this issue. https://github.com/iBCode/Demo ios simulator screen shot jun 4 2015 09 57 30

yannickl commented 9 years ago

Is the last commit fixes the glitch?

Btw: thank you very much for your demo project, it really helps me.

iBCode commented 9 years ago

Not really, just a demo to show this issue. lol