Latest 1.0.5
Homepage https://github.com/davbeck/TUSafariActivity
License BSD
Platforms ios 6.0, requires ARC
Authors ,

TUSafariActivity

Version
License
Platform

TUSafariActivity is a UIActivity subclass that provides an "Open In Safari" action to a UIActivityViewController.

TUSafariActivity screenshot

Installation

CocoaPods

TUSafariActivity is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'TUSafariActivity', '~> 1.0'

Usage

(See example Xcode project)

Simply alloc/init an instance of TUSafariActivity and pass that object into the applicationActivities array when creating a UIActivityViewController.

Objective-C

NSURL *URL = [NSURL URLWithString:@"http://google.com"];
TUSafariActivity *activity = [[TUSafariActivity alloc] init];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:@[activity]];

Swift

let URL = NSURL(string: "http://google.com")!
let activity = TUSafariActivity()
let activityViewController = UIActivityViewController(activityItems: [URL], applicationActivities: [activity])

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.

Latest podspec

{
    "name": "SS-TUSafariActivity",
    "version": "1.0.5",
    "summary": "A UIActivity subclass that opens URLs in Safari.",
    "homepage": "https://github.com/davbeck/TUSafariActivity",
    "screenshots": "http://f.cl.ly/items/3e3W360A0f0v0Z392u0W/iOS%20Simulator%20Screen%20Shot%20Oct%204,%202014,%2011.54.20%20AM.png",
    "social_media_url": "https://twitter.com/davbeck",
    "license": "BSD",
    "authors": {
        "David Beck": "[email protected]",
        "Eddie Li": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/sandsmedia/TUSafariActivity.git",
        "tag": "1.0.5"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resources": "Pod/Assets/*"
}

Pin It on Pinterest

Share This