Bug 24071 - Available status bar styles are wrong in Visual Studio iOS app properties
Summary: Available status bar styles are wrong in Visual Studio iOS app properties
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-10-27 05:59 UTC by Olaf Bartelt
Modified: 2016-12-22 19:45 UTC (History)
8 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Olaf Bartelt 2014-10-27 05:59:52 UTC
The status bar styles in the Visual Studio iOS app properties are wrong (specifically missing UIStatusBarStyleLightContent)? In my case, the "designer" even removes my custom status bar style entries in info.plist from time to time and I always have to google what they were and add them again.

Also you still include UIStatusBarStyleBlackTranslucent, UIStatusBarStyleBlackOpaque, etc. which are deprecated in iOS 7.0. Can't the Visual Studio plugin make the correct offerings depending on the target SDK version? I'm targeting 8.0 (and 7.0 before), and it's just plain wrong and annoying this way.
Comment 1 Jatin 2014-11-03 07:34:23 UTC
I have tried to reproduce this issue at my end using the build XVS 4.0.381 and I successfully able to understand the first point mentioned in the, i.e. 

In VS for Status Bar Styles the option "Light Content" is missing from the dropdown. Which does appear on XS on Mac machine.

Here is the screencast for the same: http://www.screencast.com/t/ig8f3FSSVQ5

However, I am not able to understand the other points mentioned in the bug: 

>"In my case, the "designer" even removes my custom status bar style entries in >info.plist from time to time and I always have to google what they were and add >them again.
>
>Also you still include UIStatusBarStyleBlackTranslucent,
>UIStatusBarStyleBlackOpaque, etc. which are deprecated in iOS 7.0. Can't the
>Visual Studio plugin make the correct offerings depending on the target SDK
>version? I'm targeting 8.0 (and 7.0 before), and it's just plain wrong and
>annoying this way."

So for the above mentioned points could you please provide some more information, i.e.

1. Screencast (video)
2. Detailed steps to reproduce
Comment 2 Olaf Bartelt 2014-11-03 07:54:15 UTC
Ok, it's two things actually:

1. The values UIStatusBarStyleBlackTranslucent and UIStatusBarStyleBlackOpaque have been deprecated in iOS 7.0, and therefor should not be available in projects targeting iOS 7.0 or higher:

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/c/tdef/UIStatusBarStyle

In fact, the only values to choose from should be UIStatusBarStyleDefault and UIStatusBarStyleLightContent.

2. If I change the style manually to UIStatusBarStyleLightContent in the info.plist of my app, and then edit the project properties and change, for example, the version number of my app, then the info.plist seems to get regenerated, removing my custom entry for UIStatusBarStyle in the process.
Comment 3 Matthew Orlando 2015-12-10 17:40:33 UTC
Is there any intention to address this? It has been over a year and I'm still having this problem. I have to manually edit info.plist in order for my launch screen storyboard to use LightContent. Why are the only options in the Style dropdown still "Default", "Black Translucent" and "Black Opaque"?
Comment 4 Dominik Weber 2016-06-08 20:20:33 UTC
This bug is now almost 2 years old, any chance we can get this fixed? Doesn't seem to be too hard to add an additional option to the dropdown menu of the plist editor...
Comment 5 Matthew Orlando 2016-06-08 22:13:50 UTC
Not only is it unavailable, but xamarin visual studio will actually delete the hand-coded entry. I have to be diligent not to commit that accidentally.
Comment 6 Emanuel 2016-12-22 19:45:50 UTC
The Light Content style has been added to XVS in cycle8, so it's available in the current stable bits.