Twitter Framework for ios6 how to login through se

2019-01-12 04:07发布

问题:

For iOS5 we can refer : Prompt login alert with Twitter framework in iOS5?

But for iOS6 that will not helpfull i have tried in following way but there is 1 keyboard appearance issue is present is there any one who can help me on this :

SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
tweetSheet.view.hidden=TRUE;

[self presentViewController:tweetSheet animated:YES completion:^{
    [tweetSheet.view endEditing:YES];
}];

回答1:

I have make one small change and the issue gone away

in above code when presenting viewcontroller just set animated:NO


    [self presentViewController:tweetSheet animated:NO completion:^{
        [tweetSheet.view endEditing:YES];
    }]