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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -