uistatusbar

How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView? (iPhone)

瘦欲@ 提交于 2019-12-03 22:09:19
How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView? I was battling how to do this for a long time too! Finally figured it out :) The key is to set the windowLevel of your new window to really high so it lives on top of all the other windows/views/statusbar etc: UIWindow *keyWin = [UIApplication sharedApplication].keyWindow; UIWindow *hudWindow = [[UIWindow alloc] initWithFrame:CGRectMake(0.0f, 0.0f, keyWin.frame.size.width, keyWin.frame.size.height)]; hudWindow.backgroundColor = [UIColor blackColor]; hudWindow.alpha = 0.60; [hudWindow setWindowLevel:10000

UIStatusBarStyle changes after displaying a UIWindow over UIStatusBar

≡放荡痞女 提交于 2019-12-03 10:29:59
I am displaying a UIWindow over the UIStatusBar , by default the UIStatusBarStyle is set to UIStatusBarStyleLightContent , but when I display the UIWindow the UIStatusBarStyle switches to the black style. Tuslareb I came across this topic while struggling with the same problem. What you have to do is create a new view controller and set it as the root view controller of your UIWindow (that is the UIWindow that you are displaying over your other view). Then, in this new view controller implement the preferredStatusBarStyle method like this: - (UIStatusBarStyle) preferredStatusBarStyle { return

UISearchController changing status bar color on invocation

旧时模样 提交于 2019-12-03 06:24:44
I have the following code in my app, specifically in viewDidLoad: that sets up my UISearchController . self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil]; self.searchController.searchResultsUpdater = self; self.searchController.hidesNavigationBarDuringPresentation = NO; self.searchController.dimsBackgroundDuringPresentation = NO; self.definesPresentationContext = NO; self.searchController.searchBar.scopeButtonTitles = @[]; self.searchController.searchBar.searchBarStyle = UISearchBarStyleProminent; [_tableView setTableHeaderView:_searchController.searchBar]

Status bar font is bold for some reason

家住魔仙堡 提交于 2019-12-02 10:35:30
The clock, carrier, battery part in my device is normal, like in 1st picture. When I open my app, after loading the app in memory it starts to animate and make the navigation bar bold and bigger font. I am not even sure if this is a good or bad thing, but I would like to know how this happened. Here is how I setup the rootVC if it has anything to do with this issue: window = UIWindow(frame: UIScreen.mainScreen().bounds) window!.rootViewController = VCOrganizer.LaunchVCHolder window!.backgroundColor = QorumColors.ThemeBlue window!.makeKeyAndVisible() macserv It looks like your app does not

Set Status Bar Tint Colour

时光毁灭记忆、已成空白 提交于 2019-12-02 06:40:46
问题 I have an tabbed bar application and the status bar tint colour is set to default - so it is always my selected blue colour throughout my app. However, in one view, I am hiding my Navigation Bar like so: [self.navigationController setNavigationBarHidden:YES]; This is in the viewWillAppear method and the view is accessible as it is one of the tabs of my app. The reason I am hiding it, is because I would like to put a toolbar (with about 6 buttons) in its place. I have set the tint colour of my

Set Status Bar Tint Colour

别来无恙 提交于 2019-12-02 05:53:14
I have an tabbed bar application and the status bar tint colour is set to default - so it is always my selected blue colour throughout my app. However, in one view, I am hiding my Navigation Bar like so: [self.navigationController setNavigationBarHidden:YES]; This is in the viewWillAppear method and the view is accessible as it is one of the tabs of my app. The reason I am hiding it, is because I would like to put a toolbar (with about 6 buttons) in its place. I have set the tint colour of my toolbar, however, the status bar on this view is always black. Is there a way to re-set the status bar

Set StatusBar Color for Extensions in UIActivityViewController

百般思念 提交于 2019-12-02 04:32:53
问题 Following situation given: iOS 8+ App (mainly Swift). StatusBar is set to View controller-based status bar appearance . Within the App multiple UIActivityViewControllers are used to display sharing options. The Problem: Some sharing activities have wrong StatusBar colors. Those are the device installed extensions shown when using an UIActivityViewController . Here: the sharing activities, like e.g. WhatsApp, Tumblr, Skype. What I want to achieve : Default StatusBarStyle for this App is

Set StatusBar Color for Extensions in UIActivityViewController

狂风中的少年 提交于 2019-12-01 23:45:54
Following situation given: iOS 8+ App (mainly Swift). StatusBar is set to View controller-based status bar appearance . Within the App multiple UIActivityViewControllers are used to display sharing options. The Problem: Some sharing activities have wrong StatusBar colors. Those are the device installed extensions shown when using an UIActivityViewController . Here: the sharing activities, like e.g. WhatsApp, Tumblr, Skype. What I want to achieve : Default StatusBarStyle for this App is .LightContent to fit a local UIAppearance (tinting a base NavigationController class). Remote FullScreen

UIStatusBarStyleLightContent Not setting battery white?

你离开我真会死。 提交于 2019-12-01 16:59:13
I am using programatically setting my status bar white with : [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; However the battery icon is still green? Where Apples example shows the battery being white when applying this style? See there example HERE . Any idea how to change the battery from green to white? :( the battery is only green while its charging. unplug and it will be fine as an aside, if you are on "low Power Mode" in newer iOS versions, the battery is Yellow not white 来源: https://stackoverflow.com/questions/20410709/uistatusbarstylelightcontent

UIStatusBarStyleLightContent Not setting battery white?

你。 提交于 2019-12-01 15:08:43
问题 I am using programatically setting my status bar white with : [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; However the battery icon is still green? Where Apples example shows the battery being white when applying this style? See there example HERE. Any idea how to change the battery from green to white? :( 回答1: the battery is only green while its charging. unplug and it will be fine as an aside, if you are on "low Power Mode" in newer iOS versions, the