Programmatically get a Storyboard ID?

后端 未结 6 1087
醉话见心
醉话见心 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:18

    You can use the restorationIdentifier, it's right above the Storyboard identifier and it's a UIViewController property.

提交回复
热议问题