我想知道正在显示的是哪个情节提要视图。
[self setLeftPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"menuListViewController"]];
[self setCenterPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"NavCenterController"]];
[self setRightPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"designView"]];我想检查一下是否显示了"NavCenterController“,禁用一些东西
如有任何意见,欢迎光临。
发布于 2013-05-09 22:40:46
如果我理解您的要求,为了检查是否显示了任何视图,您应该检查它的window属性。对于视图控制器,您将执行以下操作:
if(self.view.window)
// the view controller is being shown, do something
else
// the view controller is not being shownhttps://stackoverflow.com/questions/16463412
复制相似问题