Programmatically get a Storyboard ID?

后端 未结 6 1091
醉话见心
醉话见心 2020-12-02 21:52

Trying to see if a UIViewController or UIView can identify its Storyboard ID. So was hoping for:

UIViewController *aViewController;
NSString *storyboardID =         


        
6条回答
  •  既然无缘
    2020-12-02 22:27

    The storyboard id is only meant to find and instantiate a VC from a storyboard. As written in the UIStoryboard reference:

    "This identifier is not a property of the view controller object itself and is only used by the storyboard file to locate the view controller."

    Why do you need it?

提交回复
热议问题