Skip to content

Commit

Permalink
iPad support for share sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
weiran committed Jan 3, 2016
1 parent 880a023 commit f7cd2cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Client/Post/CommentsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class CommentsViewController : UIViewController, UITableViewDelegate, UITableVie

@IBAction func shareTapped(sender: AnyObject) {
let activityViewController = UIActivityViewController(activityItems: [post!.UrlString], applicationActivities: nil)
activityViewController.popoverPresentationController?.barButtonItem = sender as? UIBarButtonItem
presentViewController(activityViewController, animated: true, completion: nil)
}
}

0 comments on commit f7cd2cb

Please sign in to comment.