ios6 的 Twitter 框架如何通过应用程序的设置登录 [英] Twitter Framework for ios6 how to login through settings from app
本文介绍了ios6 的 Twitter 框架如何通过应用程序的设置登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于iOS5,我们可以参考:在 iOS5 中使用 Twitter 框架提示登录警报?
但是对于 iOS6 没有帮助,我尝试了以下方式,但存在 1 个键盘外观问题,有没有人可以帮助我:
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];tweetSheet.view.hidden=TRUE;[self presentViewController:tweetSheet 动画:YES 完成:^{[tweetSheet.view endEditing:YES];}];
解决方案
我做了一个小改动,问题就解决了
在上面的代码中,当呈现视图控制器时只需设置 animated:NO
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];
}];
解决方案
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]; }]
这篇关于ios6 的 Twitter 框架如何通过应用程序的设置登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文