个人资料未更新

时间:2017-12-27 02:09:54

标签: ios objective-c web-services

您可以从此链接下载此项目。https://drive.google.com/file/d/1daW4veZAI21b8TqKFHauSFTboHKJceaG/view?usp=sharing 执行此程序点击按钮"点击此处立即出售您的黄金"进入

用户名:hermon_yonaito@bullionscope.com

密码:Wau2017?

选择"个人资料"执行ProfileViewController.m。更新用户配置文件updateButtonTap函数被执行。它没有更新。它仍然在缓冲。如何执行配置文件更新?

这是来自ProfileViewController.m的updateButtonTap

- (IBAction)updateButtonTap:(UIButton *)sender
{
    [self.view endEditing:YES];
    [MBProgressHUD showHUDAddedTo:self.view animated:YES];

    [selectedValues setObject:@"ios" forKey:@"request"];
    [selectedValues setObject:[NSString stringWithFormat:@"%@",currentUser.user_id] forKey:@"user_id"];
    [selectedValues setObject:postalAddressTextfield.text forKey:@"address"];
    [selectedValues setObject:mobileTextfield.text forKey:@"user_mobile"];
    [selectedValues setObject:question1Textfield.text forKey:@"user_answer_1"];
    //[selectedValues setObject:question2Textfield.text forKey:@"user_answer_2"];
    [selectedValues setObject:villageTextfield.text forKey:@"user_village"];

    [GeneralWebservices webserviceCallWithData:selectedValues webserviceName:Webservice_ProfileUpdate dataToPost:imageData imageName:imageName OnCompletion:^(id returnDict, NSError *error) {
        if ([returnDict[@"success"] intValue] ==1)
        {
//            UIAlertView* alert = [[UIAlertView alloc] init];
//            [alert setTitle:@"Updated Successfully"];
//           // [alert setMessage:@"Updated Successfully"];
//            [alert addButtonWithTitle:@"OK"];
//            [alert show];
        }
        else
        {
            UIAlertView* alert = [[UIAlertView alloc] init];
            [alert setTitle:@"Updated Successfully"];
            //[alert setMessage:returnDict[@"message"]];
            [alert addButtonWithTitle:@"OK"];
            [alert show];
        }
        [MBProgressHUD hideAllHUDsForView:self.view animated:YES];

    }];
}

0 个答案:

没有答案