当我显示的通话状态栏时,我遇到了问题,我试过了。
navigationController = new UINavigationController ();
navigationController.NavigationBarHidden = true;
navigationController.View.AutosizesSubviews = true;
navigationController.View.AutoresizingMask = UIViewAutoresizing.FlexibleHeight|UIViewAutoresizing.FlexibleMargins|
UIViewAutoresizing.FlexibleTopMargin|UIViewAutoresizing.FlexibleBottomMargin;
navigationController.View.SizeToFit ();
window.RootViewController = navigationController;
window.RootViewController.View.AutosizesSubviews = true;
navigationController.View.AutoresizingMask = UIViewAutoresizing.FlexibleHeight|UIViewAutoresizing.FlexibleMargins|
UIViewAutoresizing.FlexibleTopMargin|UIViewAutoresizing.FlexibleBottomMargin;
但是仍在推动所有视图的底部,隐藏视图底部的所有按钮或控件,我也在Root View控制器中尝试了相同的代码并且不起作用。
我正在以这种方式为所有控件使用灵活的UI:
btnContacts = IOTM.GUI.CreateButton ("MainMenu/btncontacts.png", 0f,Frame.Height - (Frame.Height * 0.225f), Frame.Width, (Frame.Height * 0.075f));
我也隐藏了导航栏
有人能帮助我吗? 还有另一种方法可以自动调整视图大小或检测状态栏中的更改以重新加载我的视图吗?