TWTweetComposeViewController deprecated in IOS6 TWTweetComposeViewController deprecated in IOS6 ios ios

TWTweetComposeViewController deprecated in IOS6


There're some change with using Social network between iOS 5 & iOS 6.
1. About library: in iOS 6 we use Social framework instead of Twitter Framework.
2. We use SLComposeViewController instead of TWTweetComposeViewController.
3.Please compare some api with the following code:

if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) {        SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];        SLComposeViewControllerCompletionHandler myBlock = ^(SLComposeViewControllerResult result){            if (result == SLComposeViewControllerResultCancelled) {                NSLog(@"Cancelled");            } else            {                NSLog(@"Done");            }            [controller dismissViewControllerAnimated:YES completion:Nil];        };        controller.completionHandler =myBlock;        //Adding the Text to the facebook post value from iOS        [controller setInitialText:@"Test Post from mobile.safilsunny.com"];        //Adding the URL to the facebook post value from iOS        [controller addURL:[NSURL URLWithString:@"http://www.mobile.safilsunny.com"]];        //Adding the Image to the facebook post value from iOS        [controller addImage:[UIImage imageNamed:@"fb.png"]];        [self presentViewController:controller animated:YES completion:Nil];    }    else{        NSLog(@"UnAvailable");    }

There's just a little differences, but they're more great.

PREFERENCES:- safilsunny Tips: http://www.mobile.safilsunny.com/integrating-facebook-ios-6/

Thanks,


Yes, you're supposed to use the Social Framework on iOS 6. This is thanks to the Facebook integration now present on iOS. You will be able to use Twitter and Facebook from there.