Hide Status Bar In iOS 8 app

You need to override this method on each view controller unless you have that plist entry. Objective-C -(BOOL)prefersStatusBarHidden{ return YES; } Swift 2 override func prefersStatusBarHidden() -> Bool { return true } Swift 3+ override var prefersStatusBarHidden: Bool { return true } And don’t forget to set (if you present a view controller by calling … Read more

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

Flutter – How to set status bar color when AppBar not present

First, import services package: import ‘package:flutter/services.dart’; Next, simply put this in the build function of your App: SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( statusBarColor: Colors.blue, //or set color with: Color(0xFF0000FF) )); Additionally, you can set useful properties like: statusBarIconBrightness, systemNavigationBarColor or systemNavigationBarDividerColor If you prefer a more flutter/widget way of doing the same thing, consider using the AnnotatedRegion<SystemUiOverlayStyle> widget. The … 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

Changing the status bar text color in splash screen iOS 7

In the project plist file add the “Status Bar Style” property (key is UIStatusBarStyle). Then ignore all the possible values listed in the drop down for this property and type UIStatusBarStyleLightContent instead. And you don’t have to set UIViewControllerBasedStatusBarAppearanceto NOin your plist, you can set the preferredStatusBarStyle you want to your view controllers.

Status bar height in Swift

Is there any problems with Swift 2.x: UIApplication.sharedApplication().statusBarFrame.size.height Swift 3 or Swift 4: UIApplication.shared.statusBarFrame.height Make sure UIKit is imported import UIKit In iOS 13, you will get a deprecated warning” ‘statusBarFrame’ was deprecated in iOS 13.0: Use the statusBarManager property of the window scene instead. To fix this: let height = view.window?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0

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