简体   繁体   中英

iOS 7 During partial curl transition the navigation bar turns white

Since i changed my Storyboard from iOS 6 to iOS 7 i have the following problem. The navigation bar changes during the partial curl transition to white. I just took a screen recording for better understanding. I have the same problem in my app on a device.

Video: partial curl transition

Any suggestions?

Because in ios7 navigationBar color should taken from view background color

 -(void)viewDidDisapper{

     self.navigationController.navigationBar.barTintColor = [UIColor redColor];// Your nav image
    }

 -(void)viewWillDisapper{

     self.navigationController.navigationBar.barTintColor = [UIColor redColor];// Your nav image
    }

or set your appdelegate in case your common UINavigation Bar image throughout project

[[UINavigationBar appearance] setTintColor:[UIColor barColor]];

I finally found the answer! you have to set at your root view controller (where the action to the partial curl triggers) extend edges under top bar!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM