How to convert xib to storyboard? [duplicate]

眉间皱痕 提交于 2019-12-01 14:25:03

问题


I have downloaded Rotating Wheel Control project. It is a XCode project that uses xib and I would like it to use Storyboards. Is there a good way to move xib "Rotating Wheel Control" files into the Storyboard?

Does anyone have experience with move xib files into Storyboard?

I try to do the best I can, but when I run the program I get a NSInvalidArgumentException.

Can anyone explain, How could I can fix this problem?


回答1:


I think "no" is the short answer. I raised a Radar with Apple last year but they've not done anything yet!

You can sometimes open the XIB and copy and paste the controls into your Storyboard, but the formatting is sometimes wrong and you still have to adjust the outlets and actions manually.

There is no reason why you can't use both Storyboards and XIBs in a single project; maybe that's the best approach in the short term.



来源:https://stackoverflow.com/questions/11785583/how-to-convert-xib-to-storyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!