iOS在LoginView上登录后切换到另一个ViewController / View [英] iOS Switch to another ViewController/View after Login on LoginView

查看:87
本文介绍了iOS在LoginView上登录后切换到另一个ViewController / View的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个LoginViewController与LoginView。在按下登录按钮并成功检查登录数据后,我想显示一个navigationController。



我不想在LoginView中有Navigation Controller标题。

解决方案

是使用:

p>

  myNavController.navigationBarHidden = true 


b $ b

或者,您可以显示您的LoginViewController,并且只有在按下登录按钮之后才将Navigation Controller添加到视图。


I have a LoginViewController with a LoginView. After pressing a login-button and a successful check of the login data i want show a navigationController.

I dont want to have the Navigation Controller Headline in the LoginView.

Can you give me some tips?

解决方案

Yes use:

   myNavController.navigationBarHidden = true

Alternatively you can show your LoginViewController, and add the Navigation Controller to the view only after the login-button has been pressed.

这篇关于iOS在LoginView上登录后切换到另一个ViewController / View的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆