|
@@ -231,10 +231,10 @@
|
|
|
|
|
|
|
|
|
// 获取Info.plist的路径
|
|
|
- NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"];
|
|
|
-
|
|
|
- // 读取Info.plist文件
|
|
|
- NSMutableDictionary *infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:plistPath];
|
|
|
+// NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"];
|
|
|
+//
|
|
|
+// // 读取Info.plist文件
|
|
|
+// NSMutableDictionary *infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:plistPath];
|
|
|
|
|
|
|
|
|
if (logoSelectView.selectIndex == 1){
|
|
@@ -247,7 +247,7 @@
|
|
|
[HWDataManager setIntegerWithKey:Const_Mask_View_Model value:1];
|
|
|
|
|
|
// 修改应用名称
|
|
|
- [infoDict setObject:NSLocalizedString(@"logo_calculator",nil) forKey:@"CFBundleDisplayName"]; // 或者使用CFBundleName
|
|
|
+ //[infoDict setObject:NSLocalizedString(@"logo_calculator",nil) forKey:@"CFBundleDisplayName"]; // 或者使用CFBundleName
|
|
|
|
|
|
|
|
|
}else if (logoSelectView.selectIndex == 2){
|
|
@@ -260,22 +260,22 @@
|
|
|
[HWDataManager setIntegerWithKey:Const_Mask_View_Model value:2];
|
|
|
|
|
|
// 修改应用名称
|
|
|
- [infoDict setObject:NSLocalizedString(@"logo_bowser",nil) forKey:@"CFBundleDisplayName"]; // 或者使用CFBundleName
|
|
|
+ //[infoDict setObject:NSLocalizedString(@"logo_bowser",nil) forKey:@"CFBundleDisplayName"]; // 或者使用CFBundleName
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 保存修改后的Info.plist文件
|
|
|
- [infoDict writeToFile:plistPath atomically:YES];
|
|
|
-
|
|
|
- // 刷新应用的名称
|
|
|
- [[NSBundle mainBundle] load];
|
|
|
-
|
|
|
- infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:plistPath];
|
|
|
-
|
|
|
- NSString *DisplayName = [NSBundle mainBundle].infoDictionary[@"CFBundleDisplayName"];
|
|
|
- HLog(@"CFBundleDisplayName:%@",DisplayName);
|
|
|
+// [infoDict writeToFile:plistPath atomically:YES];
|
|
|
+//
|
|
|
+// // 刷新应用的名称
|
|
|
+// [[NSBundle mainBundle] load];
|
|
|
+//
|
|
|
+// infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:plistPath];
|
|
|
+//
|
|
|
+// NSString *DisplayName = [NSBundle mainBundle].infoDictionary[@"CFBundleDisplayName"];
|
|
|
+// HLog(@"CFBundleDisplayName:%@",DisplayName);
|
|
|
|
|
|
|
|
|
//提示语
|