Twitter框架ios6如何通过app登录设置 [英] Twitter Framework for ios6 how to login through settings from app

查看:170
本文介绍了Twitter框架ios6如何通过app登录设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关iOS5的大家可以参考:
提示登录警报在iOS5中使用Twitter框架?

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

但是对于iOS6来说,我没有帮助我尝试过以下方式,但是有1个键盘外观问题是否存在一个谁可以帮助我在此:

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

在上面的代码中显示viewcontroller时设置动画:否

in above code when presenting viewcontroller just set animated:NO



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

这篇关于Twitter框架ios6如何通过app登录设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆