How to change the status bar background color and text color on iOS 13?

You can add some conditions or use first one. Just create some extension for UIApplication. extension UIApplication { var statusBarUIView: UIView? { if #available(iOS 13.0, *) { let tag = 38482 let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first if let statusBar = keyWindow?.viewWithTag(tag) { return statusBar } else { guard let statusBarFrame = keyWindow?.windowScene?.statusBarManager?.statusBarFrame else { return … Read more

Preventing status bar expansion

You can actually prevent the status bar from expanding, without rooting phone. See this link. This draws a window the height of the status bar and consumes all touch events. Call the following code just after onCreate(). public static void preventStatusBarExpansion(Context context) { WindowManager manager = ((WindowManager) context.getApplicationContext() .getSystemService(Context.WINDOW_SERVICE)); Activity activity = (Activity)context; WindowManager.LayoutParams localLayoutParams … Read more

iOS 7 Status bar with Phonegap

I found an answer on another thread, but I’ll answer the question in case someone else wonders. Just replace the viewWillAppear in MainViewController.m with this: – (void)viewWillAppear:(BOOL)animated { // View defaults to full size. If you want to customize the view’s size, or its subviews (e.g. webView), // you can do so here. // Lower … Read more

Xamarin.Forms – Change StatusBar Color

I believe you would be better off writing a little bit of platform-specific code: For Android: On your MainActivity.cs on the Droid project, right after LoadApplication(new App()); of the overriden OnCreate method, add: Window.SetStatusBarColor(Android.Graphics.Color.Argb(255, 0, 0, 0)); Like so: protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new … Read more

How to hide a status bar in iOS?

You need to add this code in your AppDelegate file, not in your Root View Controller Or add the property Status bar is initially hidden in your plist file Folks, in iOS 7+ please add this to your info.plist file, It will make the difference 🙂 UIStatusBarHidden UIViewControllerBasedStatusBarAppearance For iOS 11.4+ and Xcode 9.4 + … Read more

Pop up the Excel Statusbar?

I just created 4 progress bars for you. Take your pick 🙂 The pie progressbar is based on Stephen Bullen’s PastePicture code. Rest of the progressbar are easy to create. I have attached a sample file in the end which you can download and test. FEW SNAPSHOTS CODE In the Userform Option Explicit Private Sub … Read more