iOS whose view is not in the window hierarchy
问题 While i am Moving From PassCode Controller to OTP ViewController, iam getting the following error in console: Warning: Attempt to present < OTPController: 0x1e56e0a0 > on < PassCodeController: 0x1ec3e000> whose view is not in the window hierarchy! This is the code I'm using to change between views: UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; OTPViewController *lOTPViewController = [storyboard instantiateViewControllerWithIdentifier:@"OTPViewController"];