Meaning of Warning “while a presentation is in progress!”

前端 未结 8 860
旧时难觅i
旧时难觅i 2020-11-29 19:29

When I am integarting the Instagram in my project. I am getting a image from UIImagePickerController and after it i want to send i

相关标签:
8条回答
  • 2020-11-29 20:00

    For those needing/wanting the swift 3 version, here it is

    viewController1.dismiss(animated: true, completion: {
        self.present(self.viewController1, animated: true)
    })
    

    viewController1 is the viewcontroller you want to present.

    0 讨论(0)
  • 2020-11-29 20:07

    Try..

        double delayInSeconds = 1.0;
        dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
        dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
    
            [self performSegueWithIdentifier:@"Identifier" sender:self];
    
        });
    
    0 讨论(0)
提交回复
热议问题