关于presentViewController 后调用pushViewController
错误代码:
LoginViewController *loginVc = [[LoginViewController alloc] int];
[self presentViewController :loginVc animated:YES completion:nil];
以上代码运行结果,返回到loginVc后再次登录调用 pushViewController 无效没有任何反应。
解决方案:
UINavigationController *uiNavC = [[UINavigationController alloc] initWithRowViewController:[[LoginViewController alloc] int]];
[self presentViewController :uiNavC animated:YES completion:nil];