1.創(chuàng)建多個(gè)??LaunchScreen.storyboard
如LaunchScreen_zh.storyboard
? ?LaunchScreen_en.storyboard
使用在Info.plist 中適配不同的storyboard
info.plist 字段
<key>UILaunchStoryboardName</key>
<string>LaunchScreen_zh.storyboard</string>
適配方案:
創(chuàng)建?InfoPlist.strings??
info.plist 國際化適配文件
內(nèi)容如:
/*?
? InfoPlist.strings
? TextRecognition
? Created by boniu on 2022/5/26.
? Copyright ? 2022 tt. All rights reserved.
*/
"CFBundleDisplayName" = "掃描文件王";
"NSCameraUsageDescription" = "需要訪問您的相機(jī)才能文件掃描";
"NSLocationWhenInUseUsageDescription" = "APP需要訪問您的位置才能精準(zhǔn)拍照搜題";
"NSPhotoLibraryAddUsageDescription" = "App需要訪問您的相冊才能保存掃描結(jié)果文件到相冊";
"NSPhotoLibraryUsageDescription" = "App需要訪問您的相冊才能文件掃描";
"NSUserTrackingUsageDescription" = "需要獲取您設(shè)備的廣告標(biāo)識符,用于向您發(fā)送個(gè)性化廣告";
"UILaunchStoryboardName" = "LaunchScreen_zh.storyboard";
適配后
<key>UILaunchStoryboardName</key>
<string>UILaunchStoryboardName</string>