objective-cios5navbarstatusbartheos

get navigation bar color to give it to status bar color on iOS 5


i'm new here and i actually started learning recently and i'm making my first Theos tweak (i made some with flex) and as i said in the title i'm looking for a way to get nav bar color or a color from part of the screen and apply it as the status bar background color


Solution

  • You're going to need to write a function to detect your targetPixelColor as a UIColor, and then apply that color to the status bar within viewWillAppear using something like

    -(void)viewWillAppear:(BOOL)animated{
    [self.navigationController.navigationBar setBarTintColor:targetPixelColor];
    }