DCURLRouter icon indicating copy to clipboard operation
DCURLRouter copied to clipboard

获取currentNavigationViewController

Open ichenwanbing opened this issue 7 years ago • 1 comments

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

ichenwanbing avatar Aug 09 '17 05:08 ichenwanbing

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

DarielChen avatar Dec 23 '17 10:12 DarielChen