UIStoryboard: What's the Correct Way to Get the Active Storyboard?

后端 未结 4 2014
无人及你
无人及你 2020-12-13 03:56

I am currently furiously digging through all the docs, and haven\'t quite found what I\'m looking for. I suspect it is a real d\'oh! answer.

I simply need to find th

4条回答
  •  轮回少年
    2020-12-13 04:27

    I have just copy pasted the code form above updated question so that everyone can see it as an answer.

    UIStoryboard *st = [UIStoryboard storyboardWithName:[[NSBundle mainBundle].infoDictionary objectForKey:@"UIMainStoryboardFile"] bundle:[NSBundle mainBundle]];
    

提交回复
热议问题