Accessing a view controller created through Storyboard using the App Delegate

后端 未结 7 1729
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 10:41

I\'m working on an iOS5 app using storyboard, and I have a method in a view controller class that i\'d like to access from the App Delegate. The trouble is, this view contr

7条回答
  •  清歌不尽
    2020-12-09 11:24

    I have a better solution. You can use window.rootViewController.storyboard to get a reference to the storyboard of that view.

提交回复
热议问题