Browse Source

Fall back to CFBundleName if CFBundleDisplayName is not available

Pierre-Olivier Latour 11 years ago
parent
commit
cf94e70a42
1 changed files with 3 additions and 0 deletions
  1. 3 0
      GCDWebUploader/GCDWebUploader.m

+ 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];