我想在 iOS6 社交框架上使用用户流。
iOS5
TWRequest *request = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@"https://userstream.twitter.com/1.1/user.json"] parameters:params requestMethod:TWRequestMethodGET];
[request setAccount:account];
self.connection = [NSURLConnection connectionWithRequest:request.signedURLRequest delegate:self];
[self.connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[self.connection start];
iOS6
SLRequest* request = [SLRequest requestForServiceType:SLServiceTypeTwitter requestMethod:SLRequestMethodGET URL:[NSURL URLWithString:@"https://userstream.twitter.com/1.1/user.json"] parameters:params];
[request setAccount:account];
self.connection = [NSURLConnection connectionWithRequest:request.signedURLRequest delegate:self];//signedURLRequest cannot use
[self.connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[self.connection start];
我想在 iOS6 上使用 signedURLRequest。请帮我:(