Xcode6 and Xcode5 get different app names and internationalization, xcode6xcode5

Source: Internet
Author: User

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.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.