viewpushcontroller动画关闭无法正确加载页面

时间:2017-09-26 07:19:17

标签: xcode

在我当前的代码中,其上有viewpushcontroller动画,按预期加载下一页(下载页面在下载期间加载activityindicator),但是当我关闭动画时,当前页面挂起,而下载发生在后台,然后下一页加载只有下载后才会发生。有没有办法让我没有动画并立即加载下一页?

当前页面:

AudioVC*vc = [self.storyboard instantiateViewControllerWithIdentifier:@"AudioVC"];
    vc.mediObj = _mediObj;
    [self.navigationController pushViewController:vc animated:YES];
}

下一页:

-(void)viewDidAppear:(BOOL)animated{

    flagCellWillAppear=0;
    detailArray = [[NSMutableArray alloc] init];
    [detailArray removeAllObjects];
    [detailArray addObjectsFromArray:[_mediObj.steps mutableCopy]];
    _titleLbl.text = _mediObj.title;

-(void)viewWillAppear:(BOOL)animated{
    _backBtn.layer.cornerRadius = 4.0;
    _playView.layer.cornerRadius = 4.0;
    _mainContainer.layer.cornerRadius = 10;
    hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
}
谢谢。

0 个答案:

没有答案