uinavagation 透明代码

 NSShadow *shadow = [[NSShadow alloc] init];

    [shadow setShadowOffset:CGSizeMake(1, 1)];

    [shadow setShadowColor:[UIColor blackColor]];

    [shadow setShadowBlurRadius:1];

    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor blackColor], NSShadowAttributeName: shadow};

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

    self.navigationController.navigationBar.shadowImage = [UIImage new];

posted @ 2014-11-17 11:37  火红的云彩  阅读(137)  评论(0编辑  收藏  举报