From f65f4beda8cf882b3835ac319600207b82f5203f Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 13 Aug 2016 09:30:40 -0400 Subject: [PATCH] Fix download progress for popup title user driver --- TestApplication/SUPopUpTitlebarUserDriver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TestApplication/SUPopUpTitlebarUserDriver.m b/TestApplication/SUPopUpTitlebarUserDriver.m index fd9bf8b3..f67bd51a 100644 --- a/TestApplication/SUPopUpTitlebarUserDriver.m +++ b/TestApplication/SUPopUpTitlebarUserDriver.m @@ -276,7 +276,7 @@ dispatch_async(dispatch_get_main_queue(), ^{ self.contentLengthDownloaded += length; double progress = (double)self.contentLengthDownloaded / self.expectedContentLength; - [self addUpdateButtonWithTitle:[NSString stringWithFormat:@"Downloading (%d%%)", (int)progress] action:nil]; + [self addUpdateButtonWithTitle:[NSString stringWithFormat:@"Downloading (%0.0f%%)", progress * 100] action:nil]; }); }