0

トークンを取得しようとしていますが、「WACloudAccessControlClient は setToken に応答しない可能性があります」などの警告メッセージが表示されます

 - (BOOL)webView:(UIWebView *)webView
shouldStartLoadWithRequest:(NSURLRequest *)request
 navigationType:(UIWebViewNavigationType)navigationType
{

    NSURL *url = [[NSURL alloc] initWithString:@"URL"];

if(url)

{

 /* make the call re-entrant when we re-load the content ourselves */

    if([url isEqual:[request URL]])
    {
        return YES;
    }

    [url release];
}

url = [[request URL] retain];
NSString* scheme = [url scheme];

if([scheme isEqualToString:@"acs"])
{
    // parse the JSON URL parameter into a dictionary
    NSDictionary* pairs = [self parsePairs:[url absoluteString]];
    if(pairs)
    {
        WACloudAccessToken* accessToken;
        accessToken = [[WACloudAccessToken alloc] initWithDictionary:pairs];
        [WACloudAccessControlClient setToken:accessToken];

        [self dismissModalViewControllerAnimated:YES];
    }

    return NO;
}

[NSURLConnection connectionWithRequest:request delegate:self];

return NO;

}

何か案は?

4

1 に答える 1