TUSafariActivity
is a UIActivity
subclass that provides an “Open In Safari” action to a UIActivityViewController
.
Requirements
- iOS 8.
Installation
CocoaPods
pod 'TUSafariActivity', '~> 1.0.1'
Usage
(See example Xcode project)
Simply alloc
/init
an instance of TUSafariActivity
and pass that object into the applicationActivities array when creating a UIActivityViewController
.
1 2 3 |
|
Note that you can include the activity in any UIActivityViewController
and it will only be shown to the user if there is a URL in the activity items.