uwking

导航

ios UINaviBar 去除分割线

//For a custom shadow image to be shown, custom background image must also be set with the setBackgroundImage:forBarMetrics: method. If the default background image is used, then the default shadow image will be used regardless of the value of this property.

    UINavigationBar *navigationBar = self.navigationController.navigationBar;

    [navigationBar setBackgroundImage:[UIImage imageWithColor:[UIColor whiteColor]]

                       forBarPosition:UIBarPositionAny

                           barMetrics:UIBarMetricsDefault];

posted on 2015-12-08 20:48  uwking  阅读(206)  评论(0编辑  收藏  举报