iOS cuja visualização não está na hierarquia da janela
Enquanto eu estou passando do PassCode Controller para OTP ViewController, estou recebendo o seguinte erro no console:
Aviso: Tente apresentar <OTPController: 0x1e56e0a0> em <PassCodeController: 0x1ec3e000> cuja exibição não está na hierarquia de janelas!
Este é o código que estou usando para alternar entre visualizações:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
OTPViewController *lOTPViewController = [storyboard instantiateViewControllerWithIdentifier:@"OTPViewController"];
lOTPViewController.comingFromReg = true;
[self presentViewController:lOTPViewController animated:YES
completion:nil];
Estou apresentando o PassCode Controller From RegistrationViewController:
UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
PassCodeViewController *passVC = [storyboard instantiateViewControllerWithIdentifier:@"PassCodeViewController"];
[self presentViewController:passVC animated:YES completion:nil];