I make a transition if I failed to load the data, I get into the loop and gives a warning: Warning!
In this case, the transition does not work.
PS The same transition works when you press a button.
@implementation ViewControllerTable - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. // Загрузка _lineNameProfile = [[NSUserDefaults standardUserDefaults] stringForKey:@"lineNameProfile"]; _linePassword = [[NSUserDefaults standardUserDefaults] stringForKey:@"linePassword"]; if(_lineNameProfile.length == 0){ ViewController *viewControllerConnect = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewControllerConnect"]; [self presentViewController:viewControllerConnect animated:YES completion:nil]; } }