当尝试使用 reloadRootControllersWithNames 时,在我的所有 View 加载后,它们的标题与状态栏的其余部分一起消失。
在Watchkit中是否有指定显示和隐藏状态栏和标题的东西?
代码:
[WKInterfaceController reloadRootControllersWithNames:@[ @"SystolicEntryController", @"DiastolicEntryController" ] contexts:nil];
最佳答案
要回答你的问题,不,目前没有 WatchKit 方法来隐藏或显示状态栏及其标题。
您所描述的体验听起来类似于这个错误(已在 Watch OS 1.0.1 中修复):Apple Watch: Status bar not visible after presenting a modal screen from page based navigation
关于ios - reloadRootControllersWithNames 隐藏标题和状态栏,watchkit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30625309/