Complete nav transparency in the navigation bar,
Complete nav transparency in the navigation bar
-(Void) added in viewDidLoad {
Swift: Version
// 1. Set the view background color
// Self. view. backgroundColor = UIColor (white: 0.25, alpha: 1.0)
//
/// 2. Set the title attribute of the navigation bar: Set the title Color
// Self. navigationController ?. NavigationBar. titleTextAttributes = [NSForegroundColorAttributeName: UIColor. whiteColor ()]
/// 3. Set the foreground color of the navigation bar: Set the item color.
// Self. navigationController ?. NavigationBar. tintColor = UIColor. whiteColor ()
//
//// 4. Set the navigation bar to translucent
// Self. navigationController ?. NavigationBar. translucent = true
//
//// 5. Set the background image of the navigation bar
// Self. navigationController ?. NavigationBar. setBackgroundImage (UIImage (), forBarMetrics: UIBarMetrics. Default)
//
//// 6. Set the navigation bar shadow Image
// Self. navigationController ?. NavigationBar. shadowImage = UIImage ()
OC: Version
[Self. navigationController. navigationBar setTintColor: [UIColor whiteColor];
[Self. navigationController. navigationBar setTranslucent: true];
[Self. navigationController. navigationBar setBackgroundImage: [[UIImage alloc] init] forBarMetrics: UIBarMetricsDefault];
[Self. navigationController. navigationBar setShadowImage: [[UIImage alloc] init];