Set the Navigation Bar Title Font

In SwiftUI, at this point we can not change the navigationBarTitle font directly, but you can change navigationBar appearance like this, struct YourView: View { init() { //Use this if NavigationBarTitle is with Large Font UINavigationBar.appearance().largeTitleTextAttributes = [.font : UIFont(name: “Georgia-Bold”, size: 20)!] //Use this if NavigationBarTitle is with displayMode = .inline //UINavigationBar.appearance().titleTextAttributes = [.font … Read more

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)]

Android 4.4 translucent Status and Navigation bars style on Android 5.0

Set android:windowTranslucentStatus to false and set android:statusBarColor to @android:color/transparent. Then add code below: getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); If you also want the navigation bar to be translucent, set android:navigationBarColor to @android:color/transparent and combine the flag View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION as well. I didn’t experiment on the navigation bar but it will work.

Position of navigation bar for modal view – iOS7

The best way to overcome this in iOS 7 is by conforming to the new UIBarPositioningDelegate protocol. You connect the delegate of your NavigationBar to your view controller (set your view controller as the delegate for the navigation bar either through storyboard or through code) and conform to that protocol and by implementing the method … Read more

Set the Navigation Bar Title Font with SwiftUI

In SwiftUI, at this point we can not change the navigationBarTitle font directly, but you can change navigationBar appearance like this, struct YourView: View { init() { //Use this if NavigationBarTitle is with Large Font UINavigationBar.appearance().largeTitleTextAttributes = [.font : UIFont(name: “Georgia-Bold”, size: 20)!] //Use this if NavigationBarTitle is with displayMode = .inline //UINavigationBar.appearance().titleTextAttributes = [.font … Read more

Permanently hide Navigation Bar in an activity

There is a solution starting with KitKat (4.4.2), called Immersive Mode: https://developer.android.com/training/system-ui/immersive.html Basically, you should add this code to your onResume() method: View decorView = getWindow().getDecorView(); decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);

How to add animation while changing the hidden mode of a uiview?

Animate the view’s opacity from 100% to 0%. Have the animation completion callback set the view to be hidden. You might also want to reset the opacity back to 100% during the callback, so the view will display fully opaque when you unhide it. yourView.alpha = 0.0 //for zero opacity yourView.alpha = 1.0 //for 100% … Read more

How to set the activity indicator in the navigation bar?

I add the below piece of code in the view where i wanted the activity indicator in the navigation bar. activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; UIBarButtonItem * barButton = [[UIBarButtonItem alloc] initWithCustomView:activityIndicator]; [self navigationItem].rightBarButtonItem = barButton; [activityIndicator startAnimating];

iOS navigation bar item image size

These are the sizes that the documentation recommends for custom icons now. @2: 50 x 50 @3: 75 x 75 Create two images of the above pixel sizes and then add them to a new image set in your Assets.xcassets file. (Apparently the @1 size is no longer needed.) Alternatively, you could use a universal … Read more

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