What Type of Hierarchy is Responsible for this Style of Onboarding?

筅森魡賤 提交于 2020-01-24 22:00:09

问题


I see many applications that display onboarding view controllers before allowing access to the main content. I have noticed that a lot of the onboarding tutorials initially display the onboarding content and then dismiss that view controller to allow access to the content.

I know that Xcode gives warnings when you try to present a view controller on a view that is not visible, such as in viewDidLoad and viewWillAppear:. So instantiating the content's view controller inside of a navigation controller, and then trying to present the onboarding view controller seemingly only works without errors if it's presented in viewDidAppear:. However, in the applications that I am referencing, the onboarding is the initially visible view before it gets dismissed to allow access to the application's content.

So what type of hierarchy allows this type of transition between view controllers when navigation controllers are presenting the onboarding without seeing the application's content prior to viewDidAppear: being called?

来源:https://stackoverflow.com/questions/44231639/what-type-of-hierarchy-is-responsible-for-this-style-of-onboarding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!