开发者

iOS Switch to another ViewController/View after Login on LoginView

开发者 https://www.devze.com 2023-03-24 04:40 出处:网络
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 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.


You could always try presenting the login view as a modal view controller over the initial navigation view. I have an app that does that, and it works quite well.

0

精彩评论

暂无评论...
验证码 换一张
取 消