1. Remove Log messages
// 1: Create a 'xxxx.pch' file
// 2: In project build settings, enable 'pch' compile and set teh pch file path
'xxxx.pch' file:
#ifndef xxxx_PrefixHeader_pch
#define xxxx_PrefixHeader_pch
// remove logs while it is a release version
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...){}
#endif
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#endif /* xxxx_PrefixHeader_pch */
2. Localizable
- Set project localizations
- Localization strings
File -> new file -> (iOS->Resource)String File
select the string file and see the right view
-
Localization App Name
create a strings file and name 'InfoPlist.strings'
and copy this to the fileCFBundleName = "Test";
-
Localization storyboard
- Notice
- The 'Base' is the default language (also call main language in itunes)
- To make a localization name, you must create a 'strings' file named 'InfoPlist.strings'
- The localization is the end of development but not the localization strings
网友评论