UIActivityViewController 101

Posted by Anthony Guay on Stack Overflow See other posts from Stack Overflow or by Anthony Guay
Published on 2012-10-19T04:57:25Z Indexed on 2012/10/19 5:00 UTC
Read the original article Hit count: 249

I'm starting to get familiar with the new iOS 6 way to share: UIActivityViewController (the same as when you share a photo from the native iOS photo app), but I'm experiencing a few problems. First, when I choose to share via email, I can't find a way to set the subject of the email. Second, when I post on twitter, I can't find how to post a URL (except explicitly writing it in a NSString).

Before, on iOS 5, I was using MFMailComposeViewController for Mail and SLComposeViewController for Twitter. It worked well. If there's no way to choose the subject with UIActivityViewController, could there be a way that I put my own custom buttons on the ActivityViewController, buttons that will call MFMailComposeViewController and SLComposeViewController when touched? I'm just speculating here.

Thanks!

© Stack Overflow or respective owner

Related posts about ios

Related posts about email