[Solved] Objective c function with variable [closed]


- (void)SaveFB:(NSString *)x:(NSString *)y
{
    NSString *value=[NSString stringWithFormat:@"%@%@",x,y];
    NSString *key=[NSString stringWithFormat:@"Save%@%@",x,y];
    NSUserDefaults  *defaultxy = [NSUserDefaults standardUserDefaults];
    [defaultxy setObject:value forKey:key];
    [defaultxy synchronize];
}

1

solved Objective c function with variable [closed]