设置透明navigationBar

   三行代码轻松实现透明navigationBar:

  [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];

    [self.navigationController.navigationBar setShadowImage:[UIImage new]];

    [self.navigationController.navigationBar setTranslucent:YES];

posted on 2015-06-24 17:03  陌上红尘  阅读(142)  评论(0编辑  收藏  举报

导航