Twitter Framework for ios6 how to login through se

2019-01-12 03:32发布

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条回答
倾城 Initia
2楼-- · 2019-01-12 04:30

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];
    }]

查看更多
登录 后发表回答