0
-(void)authenticateUserWithCallbackObject:(id)anObject andSelector:(SEL)selector andExtendedPermissions:(NSString *)extended_permissions:(id)aDelegate
{
    DelegateObj = aDelegate;
    UIWindow* window = [UIApplication sharedApplication].keyWindow;
    if (!window) 
    {
        window = [[UIApplication sharedApplication].windows objectAtIndex:0];
    }
    [self authenticateUserWithCallbackObject:anObject andSelector:selector andExtendedPermissions:extended_permissions andSuperView:window];
}

我在 FBGraph 中收到警告说“extended_permissions 用作前一个参数的名称而不是选择器的一部分”我该如何解决这个警告

4

1 回答 1

1

此方法签名拼写错误:

-(void)authenticateUserWithCallbackObject:(id)anObject andSelector:(SEL)selector andExtendedPermissions:(NSString *)extended_permissions:(id)aDelegate

也许你的意思是:

-(void)authenticateUserWithCallbackObject:(id)anObject andSelector:(SEL)selector andExtendedPermissions:(NSString *)extended_permissions andDelegate :(id)aDelegate

于 2014-08-29T07:43:26.487 回答