ios presentviewcontroller 过去怎么没有导航栏
1个回答
展开全部
present到带有导航栏的viewController,要获取到登陆界面的导航栏,再present,不然导航栏会不见
TDOALoginViewController *login = [[TDOALoginViewController alloc] init];
NavViewController *nav = [[NavViewController alloc] initWithRootViewController:login];
[self presentViewController:nav animated:YES completion:nil];
TDOALoginViewController *login = [[TDOALoginViewController alloc] init];
NavViewController *nav = [[NavViewController alloc] initWithRootViewController:login];
[self presentViewController:nav animated:YES completion:nil];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询