iphone - how to check which view in storyboard are showing -
i know storyboard view being showed.
[self setleftpanel:[self.storyboard instantiateviewcontrollerwithidentifier:@"menulistviewcontroller"]]; [self setcenterpanel:[self.storyboard instantiateviewcontrollerwithidentifier:@"navcentercontroller"]]; [self setrightpanel:[self.storyboard instantiateviewcontrollerwithidentifier:@"designview"]];
i check if "navcentercontroller" shown, disable something
any comments appreciated.
if understand you're asking, in order check whether view being shown, should check window
property. view controller following:
if(self.view.window) // view controller being shown, else // view controller not being shown
Comments
Post a Comment