English 中文(简体)
twitter ios4.Accounts Framework
原标题:twitter ios4 ..Accounts Framework

我在此之后,为了支持第5和第4期分母的tw。

if ([DETweetComposeViewController canSendTweet]) {

    DETweetComposeViewControllerCompletionHandler completionHandler = ^(DETweetComposeViewControllerResult result) {
        switch (result) {
            case DETweetComposeViewControllerResultCancelled:
                NSLog(@"Twitter Result: Cancelled");
                break;
            case DETweetComposeViewControllerResultDone:
                NSLog(@"Twitter Result: Sent");
                break;
        }
        [self dismissModalViewControllerAnimated:YES];
    };

    DETweetComposeViewController *tcvc = [[[DETweetComposeViewController alloc] init] autorelease];
    [tcvc addImage:[UIImage imageNamed:@"YawkeyBusinessDog.jpg"]];
    [tcvc addURL:[NSURL URLWithString:@"http://www.DoubleEncore.com/"]];
    [tcvc addURL:[NSURL URLWithString:@"http://www.apple.com/ios/features.html#twitter"]];
    self.modalPresentationStyle = UIModalPresentationCurrentContext;
    [self presentModalViewController:tcvc animated:YES];

} 
else {
    self.oAuth = [[[OAuth alloc] initWithConsumerKey:kDEConsumerKey andConsumerSecret:kDEConsumerSecret] autorelease];
    TwitterDialog *td = [[[TwitterDialog alloc] init] autorelease];
    td.twitterOAuth = self.oAuth;
    td.delegate = self;
    td.logindelegate = self;
    [td show];
}

教学法没有说明什么是自我的。 Auth, i import oAuth in my对口档案,并宣布OoAuth为财产

现在我有以下问题:

1) the code above worked when i didn t put the completion handler block, after adding the handler the build is failing with error in DETweetAccountSelectorViewControllerDelegate in line

#import <Accounts/Accounts.h>

说不存在这样的档案或目录......在没有完成手的情况下,它就没有了。 是的,现在与账户框架的联系和联系已超过5倍。

2) 在没有完成手工艺的情况下实施该项目时,先令方方方方方方方方方方言会pop。 但是,可以开站(授权申请是针对我的tw子提出的,但经过批准后却被 st住)。

在网上意见中抛弃了一种无选择的例外:杀脑膜炎:威胁:范围:决定生命:代表

另外,如果要关闭方言,则方案会发生故障,因为没有法规让控制员放弃使用完成手来解决问题。

3) 如果任何人都有较简单的教学方法,将第4期和第5期分期发送。

增 编

最佳回答

I found the answer..there tutorial takes you in the opposite direction..waste my 5 hours on it.. just have to initialize DETweetComposeViewController ..and the rest is taken care of.. in their tutorial.. they show twitter dialog .and can tweet function which will just confuse

问题回答

我最近收到了:

在网上意见中抛弃了一种无保留的例外:即:要求:范围:决定

在我使用的不同排放框架中傲慢。

The solution to the problem was that I had an error in my Delegate Function twitterDidLogin.

我认为,如果你解决你没有列入这一职务的错误,抛弃的无选择的例外错误就会消失。 难道你会重复这一错误吗?





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签