Xcode6 and Xcode5 get different app names and internationalization, xcode6xcode5
1. In Xcode5, the method for getting the program name (app name) is:
NSString *proName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
NSLog(@"dicName ==== %@",[[NSBundle mainBundle] infoDictionary]);
After printing, you can see:
CFBundleDisplayName = TestOfButton;
CFBundleName = TestOfButton;
2. In Xcode6, the method for getting the program name (app name) is:
NSString *proName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"];NSLog(@"dicName ==== %@",[[NSBundle mainBundle] infoDictionary]);
After printing, you can see:
CFBundleName = TestOfButton;
Without this one-key value: CFBundleDisplayName = TestOfButton;
WhileXcode6ProgramCFBundleDisplayNameYou canInfo. plistAdd this key.
3. speaking of Info. plist, in Xcode6, there is no info. string file, only Info. plist file, so if you want to internationalize, you can create a new Info. string to compensate for Info in Xcode6. string is missing. If you want to change the app name here, the CFBundleDisplayName must be enclosed in double quotation marks. Then, the remaining international operations are the same as those described on the Internet. If there are any changes, I will update them one after another.
You do not need to delete xcode5 when installing xcode6.
Xcode5 does not need to be deleted. The two are coexistence .. Drag it in directly .. In addition, multiple applications can be created without duplicate names. The current Xcode6 name is followed by a beta suffix, so it will not be overwritten. After the official version is released, the suffix will be removed, if you want to retain Xcode5, you only need to rename the original Xcode, such as Xcode5.app ..
Update xcode to xcode6
Rootviewcontroller is not set. Set it in AppDelegate.