The iOS Human Interface Guidelines say :
Use the system-provided Share button. Users are familiar with the meaning and behavior of this button, so it’s a good idea to use it when possible. The main exception to this is if your app does not contain a toolbar or navigation bar[, as] the Share button can only be used in a toolbar or navigation bar.
好的,但是如何“使用系统提供的分享按钮”? A search of the documentation没有任何用处。
我收集到 I should use UIActivityViewController in my response to the button being tapped ,但我首先要如何创建标准的共享按钮?
最佳答案
标准的共享按钮是一个 UIBarButtonItem(因此它只能出现在导航栏或工具栏上)。你需要create a “system item” ;具体来说,an “action item” . “操作”栏按钮项是共享按钮。
关于ios - 如何创建标准的 iOS 分享按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19736440/