Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 未在OAuth.io中调用委托_Ios_Iphone - Fatal编程技术网

Ios 未在OAuth.io中调用委托

Ios 未在OAuth.io中调用委托,ios,iphone,Ios,Iphone,未调用OAuth.io委托方法..有什么想法吗 ViewController.h 接收OAuthResponse时可能存在一些问题:- //在身份验证失败的情况下处理错误 - (void)didFailWithOAuthIOError:(NSError *)error{ NSLog(@"Failure"); } 检查此方法是否正在调用。如果这是调用,则表示委托方法没有任何问题 谢谢 authModel = [[OAuthIOModal alloc] initWithKey:@"Yk7

未调用OAuth.io委托方法..有什么想法吗

ViewController.h


接收OAuthResponse时可能存在一些问题:-

//在身份验证失败的情况下处理错误

- (void)didFailWithOAuthIOError:(NSError *)error{
    NSLog(@"Failure");
}
检查此方法是否正在调用。如果这是调用,则表示委托方法没有任何问题

谢谢

 authModel = [[OAuthIOModal alloc] initWithKey:@"Yk7aY94Vskjj3b6yDy3tWkBEEXo" delegate:self];
[authModel showWithProvider:@"facebook"];

//On success, the didReceiveOAuthIOResponde delegate method is called:
- (void)didReceiveOAuthIOResponse:(OAuthIORequest *)request
{
// Here you can use the request object to make requests directly
// or store it for later use (e.g. when a button is pressed)
}
- (void)didFailWithOAuthIOError:(NSError *)error{
    NSLog(@"Failure");
}