يوجد العديد من المقالات باللغة الانجليزية في هذه المدونة، يمكنك قراءتها بتحويل اللغة مجددا الى الانجليزية

Change status bar color in Xamarin.iOS

How to change Xamarin.iOS status bar color

When you create a Xamarin.iOS or Xamarin.Forms mobile application, you'll notice that the status bar color is black by default, and to change it to another color, white for example do the following:

 

1. Open info.plist file and add the following lines just after CFBundleName key

<key>UIStatusBarStyle</key>
<string>LightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

2. Now open the AppDelegate.cs file and add the following lines just before LoadApplication(new App());

UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
UIApplication.SharedApplication.SetStatusBarHidden(false, false);
UINavigationBar.Appearance.TintColor = UIColor.White;

Done!

More about xamarin here

Download Visual Studio here 

هاشتاغ

اترك تعليقاً

Tarek Jihad

Author
粉嫩公主酒酿蛋通过现代科技改良,创新加入了泰国丰胸圣品野葛根提取物丰胸产品,利用国家冻干技术,最大程度的保留了其食物的活性,只针对女性胸部发育研究丰胸方法,效果较之传统酒酿蛋好三倍不止。粉嫩公主酒酿蛋的配方用料都是经过机构的安全检测认定,有官方给出的证明丰胸食物,丰胸效果更有保障。长期服用粉嫩公主酒酿蛋不会有任何副作用,而且可以平衡女性身体激素,对于改善女性皮肤状态丰胸酒酿蛋,紧致肌肤,提升女性雌性激素都有一定的帮助。