iPhone address book - auto-select Phone owner

ⅰ亾dé卋堺 提交于 2019-12-07 15:52:05

问题


In 3.0 they have Auto-Fill for Safari. You go into the settings app to turn it on, and it needs to tie into an entry in the Address Book.

I went into the Settings app to set up mine, and I noticed that it already had guessed who I was. Was it doing this using something in the API? If so, how do I access this function?

My iPhone syncs up to Address Book on my Mac, and the desktop app knows who I am. Does the iPhone now look at this same property?


回答1:


Unfortunately, there is no public API for identifying who the owner of the phone is.

If this is something you would like I recommend filing a bug report with the Apple developer connection.

Otherwise, (while I don't recommend it) you might be able to infer from the array returned from [[NSHost currentHost] names] who the device owner is.



来源:https://stackoverflow.com/questions/1022704/iphone-address-book-auto-select-phone-owner

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!