-(void) vSLRequest:(SLRequest*) SLRequest1 WithHandler:(NSString *) errorTitle andD1: (NSString *) errorDescription FP1:(NSString *) errorParse FP2:(NSString *) errorParseDesc ifSuccess:(void(^)(NSDictionary * resp))succesBlock
{
[self vSuspendAndHaltThisThreadTillUnsuspendedWhileDoing:^{
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[SLRequest1 performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
if(error != nil) {
[[NSOperationQueue mainQueue]addOperationWithBlock:^{
[[[UIAlertView alloc] initWithTitle:errorTitle message:errorDescription delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]show];
}];
}
现在响应数据包含以下内容:
(lldb) po resp
{
errors = (
{
code = 92;
message = "SSL is required";
}
);
}
好的,twitter 现在需要 SSL。https://dev.twitter.com/discussions/24239是讨论。
我应该如何更改我的代码?