c# - Xamarin.iOS how do I change the status status bar color when there is no Navigation bar -


when using using navigationbar write

this.navigationcontroller.navigationbar.bartintcolor = constants.primarycolor; this.navigationcontroller.navigationbar.translucent = false; 

but want particular viewcontroller has no navigationbar.

enter image description here

how can achieve this?

you can this:

        navigationcontroller.navigationbar.backgroundcolor = uicolor.orange;         navigationcontroller.navigationbar.bartintcolor = uicolor.orange;         var attr = new uistringattributes();         attr.foregroundcolor = uicolor.white;         navigationcontroller.navigationbar.titletextattributes = attr;         navigationcontroller.navigationbar.translucent = false;         navigationcontroller.navigationbar.barstyle = uibarstyle.black; 

the last line trick...


Comments