尝试查看UIViewController或UIView是否可以识别它们的故事板ID。所以希望得到:
UIViewController *aViewController;
NSString *storyboardID = aViewController.storyboard.id; //not an actual property
或者:NSString *storyboardID = [aViewController.storyboard valueForKey:@"storyboardId"]; //also not a working call
但是我没有找到相似的解决方案,感到很无奈。有人知道这是否可能吗?
storyboardIdentifier
。 - pronebirdstoryboardIdentifier
的私有属性。我不知道它是否仍然可用,但你可以尝试使用valueForKey
进行查询。 - pronebird