Change color of translucent black UINavigationBar

Once you know it, it’s fairly simple: self.navigationController.navigationBar.tintColor = [UIColor blueColor]; self.navigationController.navigationBar.alpha = 0.7f; self.navigationController.navigationBar.translucent = YES; The translucent property seems only to determine wether the main view should be visible under the navigation bar, and resizes the view appropiately.

How to prevent status bar from overlapping content with hidesBarsOnSwipe set on UINavigationController?

Actually it is pretty easy to do. You just need to connect navigation isNavigationBarHidden property with status bar. Objective-C – (BOOL)prefersStatusBarHidden { return self.navigationController.isNavigationBarHidden; } Swift <= 2.3 override func prefersStatusBarHidden() -> Bool { return navigationController?.navigationBarHidden ?? false } Swift 3.0 override var prefersStatusBarHidden: Bool { return navigationController?.isNavigationBarHidden ?? false } And be sure you … Read more

how to disable a navigation bar button item in iOS

Try this Recommended self.navigationItem.leftBarButtonItem.enabled = NO; self.navigationItem.rightBarButtonItem.enabled = NO; Or Simply Disable by on Edge case self.view.window.userInteractionEnabled = NO; Update: Recently Apple doesn’t allow the back button to enable / disable. Instead of that we can hide it. self.navigationItem.hidesBackButton = YES;

How do I change navigationBar font in Swift?

Try this: self.navigationController.navigationBar.titleTextAttributes = [ NSFontAttributeName: UIFont(name: “CaviarDreams”, size: 20)!] Edit: Now, UIFont must be unwrapped to be able to be used here. Swift 5 (+ safe handling of optional UIFont) self.navigationController?.navigationBar.titleTextAttributes = [ NSAttributedString.Key.font: UIFont(name: “Caviar-Dreams”, size: 20) ?? UIFont.systemFont(ofSize: 20)]

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)