试图看看 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
但是没有乐趣,在网上也找不到类似的解决方案。有人知道这是否可行吗?