Git Product home page Git Product logo

Comments (7)

rickytan avatar rickytan commented on May 20, 2024

直接改 root navigation controller ,然后设置 transferNavigationBarAttributes 设置为 YES 也可以的

from rtrootnavigationcontroller.

songhailiang avatar songhailiang commented on May 20, 2024

嗯,但是我觉得这样可能用起来并不是很方便,因为App里很有可能会present其他的NavigationController,这样的话就得设置每个NavigationController的样式。UINavigationBar appearance是设置默认样式的,我觉得应该支持一下比较好。
您的这个库正式我所需要的,因为我的APP已经完成了,如果要使用的话,可能改动会比较大,我还在评估修改量。非常感谢!

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 20, 2024

如果你用的 storyboard ,只要改个 Class 名 😄
有空再看,本应该直接支持的

from rtrootnavigationcontroller.

songhailiang avatar songhailiang commented on May 20, 2024

我大概找到原因了,是在transferNavigationBarAttributes=YES时,给self.navigationBar设置样式时没有考虑appearance里的值,我改成这样就可以了,不知道代码严不严谨,还望指教:
self.navigationBar.tintColor = [UINavigationBar appearance].tintColor ?: self.navigationController.navigationBar.tintColor;

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 20, 2024

那你设置为 NO 试试?

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 20, 2024

我试过了,是直接支持的,你要在最开始设置 appearance

from rtrootnavigationcontroller.

rickytan avatar rickytan commented on May 20, 2024

第一个有用,后来 push 的没用,已修复

from rtrootnavigationcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.