listenzz / HBDNavigationBar

A custom UINavigationBar for smooth switching between various states, including bar style, bar tint color, background image, background alpha, bar hidden, title text attributes, tint color, shadow hidden...
MIT License
1.65k stars 213 forks source link

self.window.rootViewController直接设置为HBDNavigationController 导航栏设置功能失效 #175

Closed qiaolw closed 1 year ago

qiaolw commented 1 year ago

使用HBDNavigationBar 里Demo如下设置,导航栏设置功能失效, 是不能这样使用吗

UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"demo"];
HBDNavigationController *nav = [[HBDNavigationController alloc] initWithRootViewController:vc];
self.window.rootViewController = nav;
qiaolw commented 1 year ago

已找到原因 集成涂鸦的SDK TYNaviDelegateProxy影响导致 navigationController:(UINavigationController *)navigationController willShowViewController无回调

集成涂鸦的SDK的兄弟注意.

fanzhengfeng commented 5 months ago

@qiaolw 遇到了同样的问题,请问下是怎么解决的?