Skip to main content
16 events
when toggle format what by license comment
Feb 13, 2021 at 14:54 comment added Faizyy Doesn't work on xcode12. App crashes with, Thread 1: "App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead."
Feb 10, 2020 at 12:04 comment added Jainil Patel UIApplication.shared.statusBarUIView?.backgroundColor = .white
Nov 27, 2019 at 10:09 comment added hong developer keyWindow is deprecated in iOS 13.
Oct 8, 2019 at 8:17 history edited Callam CC BY-SA 4.0
added 2 characters in body
Oct 8, 2019 at 8:06 history edited Callam CC BY-SA 4.0
added 367 characters in body
Apr 16, 2018 at 15:31 comment added fahrulazmi I have problem with this method on iPhone X. The background color becomes transparent when app switcher (home indicator) gesture is activated.
Mar 29, 2018 at 11:28 history edited Callam CC BY-SA 3.0
added 97 characters in body
Mar 29, 2018 at 11:08 comment added Callam @SanketBhavsar I have not faced a rejection for using it as of yet
Mar 29, 2018 at 10:20 comment added Sanket_B Did anyone face app rejection by using this code? or it is safe to use?
Dec 26, 2016 at 10:23 comment added iGranDav @breaktop using the value(forKey key: String) method you are using the KVC of objc runtime to access a view you shouldn't have access to (and has no documentation referring to it BTW) during runtime only. This construction is used under iOS 10 but not under iOS 9 for instance (where you need to access the statusBarWindow first), and you have absolutely no clue that it will persists under iOS 11. Internal construction and no docs means that Apple does not have any contract to respect here.
Dec 21, 2016 at 23:30 comment added breaktop @iGranDav Why isn't this good practice. The method value(forKey key: String) is open so I'm assuming its ok to use. Can you please explain. If this is bad practice, how would you change the background color or the status bar. This methd has worked for me. I've tried adding a subview to the window object in the AppDelegate and that didn't work.
Dec 13, 2016 at 23:06 comment added iGranDav This isn't a good practice at all, I highly discourage to use this method since this UIView is private. I am curious to see if your app gets approved using this.
Dec 1, 2016 at 1:19 history edited Callam CC BY-SA 3.0
deleted 7 characters in body
Oct 1, 2016 at 3:41 vote accept derdida
Oct 1, 2016 at 3:13 review Low quality answers
Oct 1, 2016 at 3:41
Oct 1, 2016 at 2:57 history answered Callam CC BY-SA 3.0