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

Can not be very easy to control whether to display the percent sign #45

Open
Asingers opened this issue Jan 18, 2016 · 0 comments
Open

Comments

@Asingers
Copy link

Can not be very easy to control whether to display the percent sign, your project is not through the control switch, you may be able to add a bool attributes to control, I tried, realize, and convenient.
You may see this:
Add:

MDRadialProgressView.h
// 控制是否显示显示百分号
// whether or not
@property(nonatomic,assign) BOOL isShowPercentMark;
"MDRadialProgressView.m"
 if (self.isShowPercentMark == YES) {
             text = [NSString stringWithFormat:@"%.0f%%", percentageCompleted];
        }else if (self.isShowPercentMark == NO){
        text = [NSString stringWithFormat:@"%.0f", percentageCompleted];
        }
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