First of all for changing style of Status Bar for all controllers in our application we need to add property
"View controller-based status bar appearance" to
Info.Plist file and set it's value to
"NO".
Now for changing style of Status Bar we need to put this code in
AppDelegate.Swift file in method
didFinishLaunchingWithOptions
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
UIApplication.shared.isStatusBarHidden = false
UIApplication.shared.statusBarStyle = .lightContent
return true
}
}
Also we can change Status Bar style in
Project Setting
Default style of Status bar (Black)
Light style of Status bar (White)
What's up it's me, I am also visiting this web page daily, this website is in fact fastidious and the visitors are really sharing pleasant thoughts.
ReplyDeleteYour article is one of its kind which explained every bit of Custom Build Website. looking for further valuable articles from you
ReplyDeleteThis is a fantastic article! Thank you very much. These suggestions are desperately needed. The in-depth description is quite helpful. Seeing how you write was quite motivating. Best Custom Websites
ReplyDeleteGreat content. I was looking for this kind of content. It saved my time to search further.
ReplyDeleteYou must provide such type of content constantly. I appreciate your willingness to provide readers with a good article.
Custom Design Websites
Thank you very much for sharing this informational blog.I could not find such kind of information in any other site.I'll come back for more fantastic material.
ReplyDeleteBest wishes, and good luck.
Custom Website
Good content. I was looking for this type of content. Saved my time for further search.
ReplyDeleteYou should always provide that type of content. I appreciate your determination to give the students a good title.Custom Designed Websites
Thank you so much for your post; it has provided us with an excellent idea.
ReplyDeleteSEO Firm USA
ReplyDeleteI found your writing style very engaging and informative. Keep up the good work!
Isa Bel | CBD Isolate Gummies