changing UINavigationBar barStyle changes colors of subviews
I have a UISegmentedControl as the titleView in my view controller's navigationItem property. From this view controller, I push to a second controller with a different bar style. When popping the second view controller, I revert the bar style in my first controllers -viewWillAppear: method. However, I find that the segmented controller has changed colors - it was pink at first, but after setting the bar style to black opaque, the segmented control is now black also. I don't seem to be able to set its color back until the viewDidAppear: method, which produces a somewhat jarring experience.
Does anyone know a work around?
|