2014-08-29 64 views
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”警告我如何解决这个警告如何纠正延长许可在IOS

回答

1

此警告方法签名的拼写错误:

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

也许你的意思是这样的:

- (空)authenticateUserWithCallbackObject:(ID)anObject andSelector:(SEL)选择和E xtendedPermissions:(NSString *)extended_permissions andDelegate:(id)aDelegate

+0

非常感谢。 – Snehal 2014-08-29 10:30:34