ios - 如何创建标准的 iOS 分享按钮?

标签 ios cocoa-touch ios7 uikit share

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/

相关文章:

iphone - 在 Xcode 5.0.1(更新的 Xcode 6)中为 3.5、4.0(更新的 4.7 和 5.5)英寸屏幕开发相同的 UI,无横向、无 iPad 和 Storyboard

ios - 使用 NSURLSession 下载多个文件并在后台状态下保持其进度

ios - 来自文件的 UIImage 始终为零

ios - 带有 [NSNull null] 的 NSMutableArray 与 NSPointerArray

iphone - 在 TableView 中使用 GCD 和加载缩略图时遇到问题

objective-c - 防止子类方法被触发?

java - 从 JDeveloper 11.1.2.4 迁移我的应用程序后,JDeveloper 12c 出现错误

android - React Native 的项目结构包括原生 iOS,Android?

ios - 如何删除字典[String :AnyObject] for array using filter function in swift?

iOS 7 uinavigationcontroller 如何检测滑动?