ABPersonViewController上的自定义操作 [英] Custom actions on ABPersonViewController

查看:117
本文介绍了ABPersonViewController上的自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序会显示一个ABPersonViewController,并为用户提供编辑选项或选择联系人。我可以轻松地允许编辑( pvc.allowsEditing = YES ),但我无法弄清楚如何添加选择按钮。我更喜欢将它作为自定义按钮添加到ABPersonViewController,如Text Message等默认按钮。

My app brings up a ABPersonViewController and gives the user the option to edit, or to select the contact. I can easily allow editing (pvc.allowsEditing = YES) but I can't figure out how to add the Select button. I would prefer to add it to the ABPersonViewController as a custom button like the Text Message, etc. default buttons.

推荐答案

不,你不能。 Apple将拒绝对ABPersonContact的默认外观进行任何修改。另一种方法是自定义您自己的ViewController并从Contact加载数据。

No, you can't. Any modifications on the default appearance of ABPersonContact will be rejected by Apple. An alternative way is to custom your own ViewController and load data from Contact.

这篇关于ABPersonViewController上的自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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