![ios 自定义添加xib](https://img-blog.csdnimg.cn/img_convert/b56fcfa7c3a8761764bff18498de6a7c.png)
ios 自定义添加xib
![IMG_9856](https://img-blog.csdnimg.cn/img_convert/83e1605dbc34bda323a06480f932869c.png)
Typing the same text over and over–email addresses, phone numbers, and so on–can get old. If you find yourself saying the same stuff repeatedly on your iPhone, there’s an easier way. By adding text shortcuts to the system, you can type full sentences with just a few letters.
一遍又一遍地键入相同的文本(电子邮件地址,电话号码等)可能会变老。 如果您发现自己在iPhone上反复说同样的话,那是一种更简单的方法。 通过向系统添加文本快捷方式,您可以输入仅包含几个字母的完整句子。
While you may not be able to come up with a list of things you type often off the top of your head, there are many situations when this comes in handy:
尽管您可能无法经常列出经常要键入的内容,但在很多情况下这很方便:
- Email addresses 电子邮件地址
- Names/addresses/phone numbers 名称/地址/电话号码
- Common phrases: “I’ll call you in a second,” “where are you?,” “lunch today?,” etc. 常用短语:“我稍后再打给您”,“您在哪里?”,“今天午餐?”等。
- Complex symbols or emoticons (like ಠ_ಠ) 复杂的符号或表情符号(例如ಠ_ಠ)
Alright, you on board? Let’s do this thing.
好吧,你在船上吗? 让我们做这件事。
First, jump into the Settings menu, then tap “General.”
首先,跳到“设置”菜单,然后点击“常规”。
![IMG_0010](https://img-blog.csdnimg.cn/img_convert/8907747f4b5579ea17ad85d690445ae2.png)
![IMG_0011](https://img-blog.csdnimg.cn/img_convert/713763f69bceda6bcf9a1b85809d6e4c.png)
In this menu, scroll down to “Keyboards,” then to “Text Replacement.”
在此菜单中,向下滚动到“键盘”,然后滚动到“文本替换”。
![IMG_0013](https://img-blog.csdnimg.cn/img_convert/42c374712f998dbe696784e170145721.png)
![IMG_0014](https://img-blog.csdnimg.cn/img_convert/536f47c69b08d8f26200e325c22143e5.png)
There should already be one pre-made entry in this menu: “omw,” which will automatically expand to “On my way!”
此菜单中应该已经有一个预制条目:“ omw”,它将自动扩展为“我在路上!”
![IMG_0015](https://img-blog.csdnimg.cn/img_convert/b93457962b80a5a03e33775d579c27ff.png)
To add your own custom phrases, tap the plus sign in the upper right corner. From there, just add your phrase, along with the shortcut text. Super simple.
要添加自己的自定义短语,请点击右上角的加号。 从那里,只需添加您的短语以及快捷方式文本即可。 超级简单。
![IMG_0015](https://img-blog.csdnimg.cn/img_convert/9973cd21f5d8dab7bcc78d83bc933cce.png)
![IMG_0016](https://img-blog.csdnimg.cn/img_convert/70c159004f0f43b7d42e9e753f2dcb9c.png)
These phrases aren’t case sensitive, and they also work across all third-party keyboards. They even sync with iCloud, so they’ll work across all of your devices. That’s awesome.
这些短语不区分大小写,它们还可以在所有第三方键盘上使用。 它们甚至与iCloud同步,因此可以在您所有的设备上使用。 棒极了。
![IMG_0018](https://img-blog.csdnimg.cn/img_convert/8ef8b097654404eb79f3857da98eea96.png)
![IMG_0019](https://img-blog.csdnimg.cn/img_convert/bda612fe1bc15b888cbb62b6f672c8d7.png)
翻译自: https://www.howtogeek.com/277271/how-to-add-custom-text-shortcuts-to-ios/
ios 自定义添加xib