Search code examples
objective-ciostwitterios6social-networking

Twitter Framework for ios6 how to login through settings from app


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

Solution

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