Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SLComposeViewController.isAvailableForServiceType(SLServiceTypeFacebook){
- var facebookSheet:SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook)
- facebookSheet.setInitialText("Vea Software! :D")
- self.presentViewController(facebookSheet, animated: true, completion: nil)
- } else {
- var alert = UIAlertController(title: "Accounts", message: "Please login to a Facebook account to share.", preferredStyle: UIAlertControllerStyle.Alert)
- alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
- self.presentViewController(alert, animated: true, completion: nil)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement