[英]How to change the displayed title of a soft keyboard in iOS?
Here's how my soft keyboard's title is currently displayed among the keyboard choices in iOS: 这是我的软键盘标题当前在iOS中的键盘选项中的显示方式:
I'd prefer for it to be displayed like the Gboard example above it, simply as "ASETNIOP" on the top line and "Multiple languages" below, as shown in the mockup here: 我希望它像上面的Gboard示例一样显示,就像在顶部显示“ ASETNIOP”,在下面显示“多种语言”一样,如此处的模型所示:
I can change the lowercased prefix if I modify the extension's "Display Name" in Target->General->Identity, but I can't eliminate it (or the associated dash) entirely: 如果我在Target-> General-> Identity中修改了扩展名的“显示名称”,则可以更改小写字母的前缀,但不能完全消除它(或相关的破折号):
And (although I don't actually need to do this) it doesn't look like it's possible to change the main application's Display Name at all - it's grayed out: 并且(尽管我实际上并不需要这样做)看起来根本不可能更改主应用程序的“显示名称”-它显示为灰色:
Can anyone let me know where I need to go to make these changes, and where I need to go to change the Language designation as well? 谁能让我知道我需要去哪里进行这些更改,以及我还需要去哪里更改语言名称?
For multi language, open your info.plist as source code of extension part . 对于多语言,请打开info.plist作为扩展部分的源代码。 Then find 然后找到
<key>PrimaryLanguage</key>
<string>en-US</string>
replace with 用。。。来代替
<key>PrimaryLanguage</key>
<string>mul</string>
The name of the keyboard application extension (or appex ) iOS displays in the menu under "Globe" button is taken from the Keyboard appex's metadata. iOS在“地球”按钮下的菜单中显示的键盘应用程序扩展名(或appex )的名称取自Keyboard appex的元数据。 In your case this is asentitop target. 在您的情况下,这是最高目标。 So, check/apply the following for this target: 因此,为此目标检查/应用以下内容:
Go to the target's Info.plist
and change the following keys. 转到目标的Info.plist
并更改以下键。
<key>CFBundleDisplayName</key>
<string>ASETNIOP</string>
<key>CFBundleName</key>
<string>ASETNIOP</string>
Advanced setup would employ localization for your custom keyboard extension display name. 高级设置将对您的自定义键盘扩展名显示名称使用本地化。
${PRODUCT_NAME}
转到常规标签,然后将显示名称设置为${PRODUCT_NAME}
CFBundleName
to ${PRODUCT_NAME}
转到信息标签,并将CFBundleName
设置为${PRODUCT_NAME}
CFBundleDisplayName
is set to ${PRODUCT_NAME}
确保CFBundleDisplayName
设置为${PRODUCT_NAME}
Now, this setup allows you to set the Keyboard appex's name from a single place -- Build Settings tab 现在,此设置允许您从一个位置设置Keyboard appex的名称-“ 构建设置”选项卡
PRODUCT_NAME
. 转到“ 构建设置”标签,然后搜索PRODUCT_NAME
。 Edit Product Name to be ASETNIOP 将产品名称编辑为ASETNIOP Localize Info.plist
and add these keys to respective localizations: 本地化Info.plist
并将这些键添加到各自的本地化:
"CFBundleDisplayName" ="ASETNIOP"; "CFBundleName" = "ASETNIOP";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.