本文介绍了iOS 12在QuickType栏中建议电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Lyft如何在QuickType栏中建议我的电话号码,这样我就不必手动输入它了?我知道Apple在iOS 12上为用户名,密码,安全代码等引入了自动填充功能,看来此电话号码建议可能正在使用类似的功能,但我不知道如何获取我的任何应用程序来建议电话号码就像Lyft在下面所做的一样.

How is Lyft suggesting my phone number in the QuickType bar so that I do not have to enter it manually? I know Apple introduced autofill functionality for usernames, passwords, security codes, and more with iOS 12 and it looks like this phone number suggestion may be using a similar function but I cannot figure out how to get any of my apps to suggest the phone number like Lyft is doing below.

推荐答案

正如@Rob在我的问题下方的评论中所说.

As @Rob said in a comment below my question.

textField.textContentType = UITextContentType.telephoneNumber

导致我一直在寻找的行为.谢谢@Rob

Results in the behavior I was looking for. Thanks @Rob

这篇关于iOS 12在QuickType栏中建议电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 09:57