简体   繁体   English

在iPhone上的Objective-C中查找联系人图像的路径

[英]Finding the path to a contacts image in Objective-C on the iPhone

I was wondering if there was someway to find the file path of a contacts image? 我想知道是否有某种方式可以找到联系人图像的文件路径?

I'm familiar with the functions ABPersonCopyImageData and ABPersonCopyImageDataWithFormat. 我熟悉ABPersonCopyImageData和ABPersonCopyImageDataWithFormat函数。

Those don't return the actual path to the image though. 那些不会返回图像的实际路径。 I was wondering if this was even possible? 我想知道这是否可能? Thanks! 谢谢!

It's probably not possible. 这可能是不可能的。 Even if it were possible, it wouldn't matter, because your application only has access to the files in its own application sandbox. 即使有可能,也没关系,因为您的应用程序只能访问其自己的应用程序沙箱中的文件。 The address book is stored outside of your application's sandbox. 通讯录存储在应用程序的沙箱外部。 So even if you had the path you couldn't access the file. 因此,即使您具有路径,也无法访问文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM