Presenting a modal view controller immediately after dismissing another

后端 未结 8 1817
渐次进展
渐次进展 2020-12-02 12:59

I\'m dismissing a modal view controller and then immediately presenting another one, but the latter never happens. Here\'s the code:

 [self dismissModalViewContro         


        
相关标签:
8条回答
  • 2020-12-02 14:02
    [self dismissViewControllerAnimated:YES completion:^{
        //Present the new MVC 
    
    }];
    

    Note: Available iOS 5.0 onwards.

    0 讨论(0)
  • 2020-12-02 14:02
    [self dismissModalViewControllerAnimated:NO];
    
     UIImagePickerController *picker = [[UIImagePickerController alloc] init];
     picker.delegate = self;
     picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
     [self presentModalViewController:picker animated:YES];
    
    0 讨论(0)
提交回复
热议问题