编辑框架中的方法
我想从 Collaboration.framewwork 实现身份选择器表,但我想删除一些功能(添加用户和地址簿)。这可能吗?如果是的话怎么办?
I want to implement the Identity Picker sheet from the Collaboration.framewwork but I want to remove some functions (Add User & Address Book). Is that possible? If yes how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Objective-C API 没有办法做到这一点。通常,当苹果省略某些功能时,他们有充分的理由这样做。在本例中,身份选择器用于选择 ACL 的身份。为什么要限制用户选择他或她想要的任何身份的能力?至少苹果(可能)是这么想的。
如果您想将选择限制为实际用户,您可能需要创建自己的工作表并使用核心服务方法填充它。
The Objective-C API has no means of doing it. Usually, when Apple omits some functionality, they have a good reason for doing it. In this case, the identity picker is for picking identities for ACLs. Why would you want to restrict the user's ability to select whatever identities he or she wants? At least that's Apple's (possible) thinking.
If you want to restrict the choice to actual users, you'll probably need to create your own sheet and populate it by using the core services methods.