iphone - How to know the current storyboard name? -


i want know current loaded storyboard,i used below code still me main storyboard not current.

//this me main storyboard  [[nsbundle mainbundle].infodictionary objectforkey:@"uimainstoryboardfile"]; 

if working in uiviewcontroller class instantied or segues through storyboard simple way :

uistoryboard *storyboard = self.storyboard; 

if in uiview class in uiviewcontroller

uiresponder *responder = self; while (![responder iskindofclass:[uiviewcontroller class]]) {     responder = [responder nextresponder];     if (nil == responder) {         break;     } } uiviewcontroller *viewcontroller = (uiviewcontroller *) responder; uistoryboard *storyboard = viewcontroller.storyboard; 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -