From 4211046864b3499fafb862ad5052a2256415232c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Bu=CC=88gling?= Date: Wed, 10 Dec 2014 11:54:37 +0100 Subject: [PATCH] Don't mess with `NSLocale.currentLocale` It might not reflect the user's actual locale in `+load`, so let's do the set up in `+initialize`. --- src/Components/MRNavigationBarProgressView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/MRNavigationBarProgressView.m b/src/Components/MRNavigationBarProgressView.m index 5aad459..3140c3a 100644 --- a/src/Components/MRNavigationBarProgressView.m +++ b/src/Components/MRNavigationBarProgressView.m @@ -50,7 +50,7 @@ @implementation MRNavigationBarProgressView static NSNumberFormatter *progressNumberFormatter; -+ (void)load { ++ (void)initialize { NSNumberFormatter *numberFormatter = [NSNumberFormatter new]; numberFormatter.numberStyle = NSNumberFormatterPercentStyle; numberFormatter.locale = NSLocale.currentLocale;