im creating new design app have created new story board. need support older design now, designing upcoming 1 on fly. reusing classes , viewcontrollers. there way check storyboard name in classes? example, if 'main' storyboard have normal left bar button item, if 'newdesign' 'x'?
i cant find way 'uistoryboard' name?
for example in pseudocode:
if(self.storyboard.name isequaltostring: @"main"){ }else{ }
how this?
uistoryboard * storyboard1 = self.storyboard; nsstring *name=[storyboard1 valueforkey:@"name"]; nslog(@"%@",name); another approach check restoration id of view controllers. how that?
Comments
Post a Comment