Jump to content

NSString stringWithFormat Percent %


Go to solution Solved by Cycas,

5 posts in this topic

Recommended Posts

Posted (edited)
I have a project here. but I had a problem. download do not show 1-100%. what's the solution in order to display 1-100% sequentially?

 

 


 

 

my code:

 



@interface SBDownloadingIcon
-(id)displayNameForLocation;
-(float)progressPercent;
@end

%hook SBDownloadingIcon
- (id)displayNameForLocation:(int)location
{
NSString *ret = %orig;
return [NSString stringWithFormat:@"%0.0f%%, %@", 100 * [self progressPercent], ret];
}
%end

Updated by pxcex
Posted
  On 1/8/2017 at 11:27 AM, Basmal121 said:

The developer of AppETA would teach you the best

 

my expectations

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines