GithubHelp home page GithubHelp logo

Comments (2)

christianroman avatar christianroman commented on May 8, 2024

I'm trying to solve the problem.

I'm not sure if this could solve your problem. A temporally solution for me is (example):

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    YourViewController *yourViewController = [[YourViewController alloc] init];

    UINavigationController *navigationController = [[UINavigationController alloc] initWithNavigationBarClass:[CRGradientNavigationBar class] toolbarClass:nil];
    [[navigationController navigationBar] setTranslucent:NO];

    // Notice that you don't need to reconfigure the gradient colors    

    [navigationController setViewControllers:@[yourViewController]];

    [self.navigationController presentViewController:navigationController animated:YES completion:nil];

    //[tableView deselectRowAtIndexPath:indexPath animated:YES];
}

This is not the best solution. I'm working on it.

from crgradientnavigationbar.

gbmksquare avatar gbmksquare commented on May 8, 2024

This solution didn't work out for me..

I'm using IBAction on the gear icon on the first picture to present the modal view.

In storyboard, I've set navigation bar in parent view controller to CRGradientNavigationBar, and also navigation bar in modal view to CRGradientNavigationBar.

If translucency is set to NO in modal view, the color is dark no matter what parent translucency is.

from crgradientnavigationbar.

Related Issues (12)

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.