地址簿:区分类型为kABSourceTypeExchangeGAL的源 [英] AddressBook: Differentiating sources of type kABSourceTypeExchangeGAL

查看:91
本文介绍了地址簿:区分类型为kABSourceTypeExchangeGAL的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在这个网站上已经问过我多次询问的问题了(以前的话题的链接在我的问题下面)。


The question I'm asking have already been asked a number of times on this site (links to the previous threads are below my question).

在使用iOS AddressBook并尝试获取Exchange GAL地址簿时,类型名称返回Nil。我使用的代码(在以前的所有线程中都建议使用)是:

When working with iOS AddressBook, and trying to get Exchange GAL address book, the type name returns Nil. The code that I use (and suggested in all previous threads) is:

CFStringRef sourceName = (CFStringRef)ABRecordCopyValue(source, kABSourceNameProperty);

这基本上意味着,如果设备上映射了多个Exchange通讯簿(并且没有限制...),那么就没有办法知道您需要的是哪一个。

This basically means that if there are more than one Exchange address book mapped on the device (and there is no limitation to do so...), then there is no way to know which one is the one you need.

问题是,是否有人找到了解决方法?

The question is if someone has found any workaround for this issue?

预先感谢!

链接到以前的线程:


  1. ABAddressBook ABSource和ABSourceType

  2. iPhone:如何获取iPhone上所有通讯簿的名称?

  3. AB源名称返回nil

  4. 地址簿:如何获取不同Exchange来源的名称

  5. 读取ABSource的名称

  1. ABAddressBook ABSource and ABSourceType
  2. iPhone: How do you get the names of all the address books on the iPhone?
  3. ABSource name returning nil
  4. AddressBook: how to get names of different Exchange sources
  5. Read name of ABSource


推荐答案

首先:我们使用了正式的Apple支持请求来询问是否可以区分Exchange Server和简单的答案是:不是! :(

First of all: We used an official Apple Support Request to ask if it is possible to distinguish between Exchange Servers and the simply answer was: It is not! :(

我打开了一个有关此问题的错误报告。

I opened a Bug Report about this issue.

如果您是为商业客户开发的,可以选择让IT部门预先安装所需的交换,并阻止用户通过策略添加其他交换服务器。

If you are developing for a business customer it might be an option to have their IT pre-install the wanted exchange and prevent the user from adding additional exchange servers via policy.

这篇关于地址簿:区分类型为kABSourceTypeExchangeGAL的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆