简体   繁体   English

如何将Xcode ui文件从一个项目复制到另一个项目?

[英]How to copy xcode ui files from one project to another?

I am new to xcode and swift. 我是xcode和Swift的新手。 I downloaded a simple login application from the internet, developed the application to a larger application by adding 10 UIs and swift codes. 我从互联网上下载了一个简单的登录应用程序,并通过添加10个UI和快速代码将其开发为更大的应用程序。 Due to signing/licening problems in the downloaded login app, I need to start a completely new project. 由于下载的登录应用程序中的签名/许可问题,我需要启动一个全新的项目。 Is it possible to grab the ui files from the previous project to the latest project. 是否可以将ui文件从先前的项目捕获到最新的项目。

Sure. 当然。 The easiest way is to drag the files into the new Xcode project and check the check box "Copy files if needed". 最简单的方法是将文件拖到新的Xcode项目中,然后选中“如果需要,则复制文件”复选框。

But you could also solve the signing problems. 但是您也可以解决签名问题。 This not some kind of magic. 这不是某种魔术。 It's just a collection of files. 这只是文件的集合。

在此处输入图片说明

Its so simple just click the storyboard and open it as source code . 如此简单,只需单击情节提要,然后将其作为源代码打开。

1.Then copy the xml fully 1.然后完全复制xml

3.then paste the xml in to your new project storyboard source code . 3.然后将xml粘贴到新项目情节提要源代码中。

Thanks :) 谢谢 :)

如果要将视图从一个项目复制到另一个项目,则只需从文档大纲中选择视图并按Command + C复制,然后转到要粘贴视图的项目,打开文档大纲并按命令+ V粘贴即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM