I have added this code for presenting a UIActivityViewController:
-(IBAction)activityAction:(id)sender
{
UIActivityViewController *activityV
Make sure that you don't exclude the Activities that you want to use. So, remove "UIActivityTypePostToFacebook" & "UIActivityTypePostToTwitter" from "activityViewController.excludedActivityTypes" object.
Also, Make sure that you are logged in into Facebook and Twitter accounts in order to post on respective social platform.
Please note that this is working on simulator and real devices.
Hope this helps you.