Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取currentNavigationViewController #10

Open
ichenwanbing opened this issue Aug 9, 2017 · 1 comment
Open

获取currentNavigationViewController #10

ichenwanbing opened this issue Aug 9, 2017 · 1 comment

Comments

@ichenwanbing
Copy link

当我的工程的 根控制器 不是NavigationController 而是采用抽屉架构,导航栏只是作为抽屉的CenterVC 此时获取NavigationController为nil 返回的currentNavigationViewController是新创建UINavigationController 。这里算有个小bug吧,其实我是有导航的由于采用了抽屉架构,你没找到我的导航又新建了个导航。个人理解,如有差错,见谅。

@DarielChen
Copy link
Owner

是有问题 抽屉架构一般都是主控制器中嵌套子控制器,而我在获取当前控制器的时候,并没有办法区分控制器是属于哪个子控制器的,所以currentViewController就变成了抽屉架构的主控制器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants