Эх сурвалжийг харах

Fall back to CFBundleName if CFBundleDisplayName is not available

Pierre-Olivier Latour 11 жил өмнө
parent
commit
cf94e70a42

+ 3 - 0
GCDWebUploader/GCDWebUploader.m

@@ -322,6 +322,9 @@
       NSString* title = server.title;
       if (title == nil) {
         title = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
+        if (title == nil) {
+          title = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
+        }
 #if !TARGET_OS_IPHONE
         if (title == nil) {
           title = [[NSProcessInfo processInfo] processName];