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

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -