Ios 如何登录twitter Post1.1
这是我登录twitter的旧代码:Ios 如何登录twitter Post1.1,ios,objective-c,twitter,Ios,Objective C,Twitter,这是我登录twitter的旧代码: NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/account/verify_credentials.json"]; TWRequest *req = [[TWRequest alloc] initWithURL:url parameters:nil
NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1/account/verify_credentials.json"];
TWRequest *req = [[TWRequest alloc] initWithURL:url
parameters:nil
requestMethod:TWRequestMethodGET];
// Important: attach the user's Twitter ACAccount object to the request
req.account = self.acAcount;
_strFullName=nil;
self.strUsername =nil;
[req performRequestWithHandler:^(NSData *responseData,
NSHTTPURLResponse *urlResponse,
NSError *error) {
// If there was an error making the request, display a message to the user
它不再起作用了
我得到了这样的回应
那么我应该如何修改代码呢?我只是将代码更改为:
NSURL *url = [NSURL URLWithString:@"http://api.twitter.com/1.1/account/verify_credentials.json"];
你能发布回复吗?我在你的问题中看不到这一点。