【问题标题】:how to rectify the warning for extended permission in ios如何纠正ios中扩展权限的警告
【发布时间】:2014-08-29 07:11:26
【问题描述】:
-(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 fb-graph


    【解决方案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

    【讨论】:

    • 非常感谢.. 这有帮助
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-17
    相关资源
    最近更新 更多