相关疑难解决方法(0)

使用iOS5中的Twitter框架提示登录提醒?

大家都知道,因为iOS5有一个原生的Twitter框架,可以很容易地从你的应用发布推文.

有没有办法提示将用户转发到设置应用程序并要求输入用户名和密码的警报?

我知道我可以使用以下代码解决问题:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]];
Run Code Online (Sandbox Code Playgroud)

但那是没有文档的代码..

提前致谢

关心比利(我在SO上的第一篇文章)

twitter objective-c ios

8
推荐指数
2
解决办法
9025
查看次数

Twitter框架ios6如何通过app登录设置

对于iOS5,我们可以参考: 在iOS5中使用Twitter框架提示登录提醒?

但对于iOS6来说,我没有帮助,我已经尝试过以下方式,但有1个键盘外观问题存在是否有任何人可以帮助我这个:

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

[self presentViewController:tweetSheet animated:YES completion:^{
    [tweetSheet.view endEditing:YES];
}];
Run Code Online (Sandbox Code Playgroud)

twitter objective-c social-networking ios ios6

8
推荐指数
1
解决办法
4957
查看次数

从ACAccountStore打开Twitter设置(iOS 5.1 TWITTER)

在iOS 5.0中我从我的应用程序打开Twitter设置

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]];

但是,此功能在iOS 5.1中被删除,因此我无法打开Twitter设置.

现在我正在使用

 + (void)makeRequestsWithURL: (NSURL *)url {
// Create an account store object.
ACAccountStore *accountStore = [[ACAccountStore alloc] init];

// Create an account type that ensures Twitter accounts are retrieved.
ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
[self canTweetStatus];

// Request access from the user to use their Twitter accounts.
[accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
    if(granted) {
        // Get the list of Twitter accounts.
        NSArray *accountsArray = [accountStore accountsWithAccountType:accountType];

        // For the sake …
Run Code Online (Sandbox Code Playgroud)

iphone twitter objective-c ios5 ios5.1

7
推荐指数
2
解决办法
7267
查看次数

如何指导用户使用Twitter.framework将他们的Twitter帐户添加到Twitter设置?

在iOS5上可以提示并指导用户访问Twitter Settings.app区域,以便他们可以将自己的Twitter帐户添加到手机中吗?如果是这样你怎么做?

作为一种解决方法,我可以指导他们打开Settings.app,但就此而言.

iphone twitter objective-c ios ios5

5
推荐指数
1
解决办法
1962
查看次数

标签 统计

objective-c ×4

twitter ×4

ios ×3

ios5 ×2

iphone ×2

ios5.1 ×1

ios6 ×1

social-networking ×1