locked
MasterDetailPage color bar above menu? RRS feed

  • Question

  • User365854 posted

    How to color the bar above the menu?

    Also: On iPhone, when click a menu item, the detail page navigates to another page, before the menu closes. It takes a very long time. How to fix it? Using Prism.

    Thursday, June 28, 2018 1:35 PM

Answers

  • User365854 posted

    Solution: UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) { statusBar.BackgroundColor = color; }

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, June 29, 2018 6:56 AM

All replies

  • User329247 posted

    @phantonym Do you want to apply color to the statusbar (The bar that displays time in your screenshot)?

    Friday, June 29, 2018 6:43 AM
  • User365854 posted

    Solution: UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) { statusBar.BackgroundColor = color; }

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, June 29, 2018 6:56 AM
  • User355483 posted

    UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false); UIApplication.SharedApplication.SetStatusBarHidden(false, false);

    I used this in AppDelegate, and it looks better :)

    Friday, June 29, 2018 8:17 AM