admin管理员组文章数量:1302981
I am working to migrate my project over to using scenes
and am needing to rebuild my State Restoration code to using NSUserActivity
. I would love to stay on the viewController based state restoration but using CarPlay is requiring that I switch to scenes.
I have searched for resources and also looked at the Apple project which is overly complex and does not help a person understand how to use Scene based state restoration.
My app has a very large navigation hierarchy as a user could navigate through multiple screens and the navigation stack can become quite large.
A few specific questions come to mind:
- How does
NSUserActivity
know which viewController to restore and when if it was in the stack of aUINavigationController
? - How does the individual viewController get restored of the correct class?
Can anyone provide a simple example of how to restore a UITabViewController
based app that uses UINavigationController
?
版权声明:本文标题:ios - NSUserActivity State Restoration of a UITabViewController with UINavigationControllers - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741743851a2395416.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论