IOS进度对话框

IOS进度对话框,ios,progressdialog,Ios,Progressdialog,我想将android应用程序转换为iPhone。我设法通过 NSString *s =[NSString stringWithFormat:@"www.xyz.com"]; NSURL *url = [NSURL URLWithString:s]; // NSLog(s); NSString *content = [NSString stringWithContentsOfURL:url encoding:NSASCIIStringEncoding error:nil];

我想将android应用程序转换为iPhone。我设法通过

 NSString *s =[NSString stringWithFormat:@"www.xyz.com"];
 NSURL *url = [NSURL URLWithString:s];
    //    NSLog(s);
 NSString *content = [NSString stringWithContentsOfURL:url encoding:NSASCIIStringEncoding error:nil];
 NSData *data = [content dataUsingEncoding:NSUTF8StringEncoding];
 NSDictionary *response = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:nil];
但是,如何使用旋转微调器获取进度对话框,直到加载为止。请帮忙,谢谢

MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.mode = MBProgressHUDModeAnnularDeterminate;
hud.labelText = @"Loading";
[self doSomethingInBackgroundWithProgressCallback:^(float progress) {
    hud.progress = progress;
} completionCallback:^{
    [hud hide:YES];
}];
you have add this code 
从下载源代码


下载源代码您必须在项目中添加mbprogesshud相同配合的任何示例?查找
UIActivityIndicatorView
。可能的重复必须在项目中添加mbprogesshud相同配合的任何示例?查找
UIActivityIndicatorView
。可能的重复