如何将xib转换为storyboard? [英] How to convert xib to storyboard?

查看:171
本文介绍了如何将xib转换为storyboard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已下载旋转车轮控制项目。这是一个使用xib的XCode项目,我希望它能使用Storyboard。有没有一种方法可以将xib旋转轮控制文件移动到故事板?

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?

有没有人有将xib文件移动到Storyboard的经验?

Does anyone have experience with move xib files into Storyboard?

我尽力做到最好,但是当我运行程序时,我得到一个
NSInvalidArgumentException

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?

推荐答案

我认为不是简短的回答。我去年和苹果公司合作过雷达,但他们还没有做任何事情!

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

你有时可以打开XIB并将控件复制并粘贴到你的故事板中,但是格式化有时是错误的,您仍然需要手动调整插座和操作。

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.

没有理由不在单个项目中同时使用Storyboard和XIB;也许这是短期内最好的方法。

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.

这篇关于如何将xib转换为storyboard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆