1. 目的支持多语言
2.a.应用名字
b.应用中的文字,图片等
举例:a. (1) 在Info.plist 添加属性 Application has localized display name 设置为 boolean 值为YES
(2) new file --->String file ---->InfoPlist(文件命名,必须是这个名字) ---->InfoPlist.striings文件
在资源中添加 "+" 选择对应的语言 (chinese) .点击可展开
(3) 在对应的语言文件添加关键字符串 CFBundleDisplayNmae = "微信" 或者 CFBundleDisplayNmae = "WeChat“
eg
CFBundleDisplayName = "WeChat";
CFBundleDisplayName = "微信";
举例:b.(1)重复a中的第二步,命名为Localizable,也是必须。-->Localizable.strings 文件
(2).eg
"welcome" = "Click on the screen to continue...";
"welcome" = "点击屏幕继续...";
CGRect appRect = [[UIScreen mainScreen] applicationFrame];
CGRect titleRect = CGRectMake(20, 50, CGRectGetWidth(appRect)-40, 25);
UILabel *titleLabel = [[UILabel alloc]initWithFrame:titleRect];
[titleLabel setBackgroundColor:[UIColor clearColor]];
[titleLabel setTextColor:[UIColor blackColor]];
[titleLabel setText:NSLocalizedString(@"welcome", nil)];
[self.view addSubview:titleLabel];
[titleLabel release];
完,如有错误,请指正。