Skip to content
Guest Big Announcement

NSString stringWithFormat Percent %

Featured Replies

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

Solved by Cycas

  • Author

The developer of AppETA would teach you the best

 

my expectations

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.