空应用程序混合Sprite套件 [英] Mixing Sprite Kit with Empty Application
问题描述
我目前正在使用默认值为Empty Application
的iPhone开发一个应用程序.这意味着Xcode创建的唯一对象是AppDelegate.
I am currently developing an application for the iPhone with the Empty Application
default. This means that the only thing created by Xcode is an AppDelegate.
.pch文件中唯一导入的框架是<Foundation/Foundation.h>
框架.
The only framework imported in my .pch file is the <Foundation/Foundation.h>
Framework.
这对于我的大多数应用程序都是可行的,但是在某些地方,我想使用SpriteKit
.
是否可以在使用Empty Application
默认值的应用程序中使用SpriteKit
框架?
This is working out for most of my application, but in some places, I would like to use SpriteKit
.
Is it possible to use the SpriteKit
framework in my application that uses the Empty Application
default?
之所以这样问,是因为通常情况下,如果要使用SpriteKit,在Xcode中创建新项目时必须特别选择Sprite Kit Game
默认值.
I'm asking this because normally, I have to specifically choose the Sprite Kit Game
default when creating a new project in Xcode if I want to use SpriteKit.
推荐答案
是的,这是绝对可能的.您只需要像其他框架一样将SpriteKit框架添加到空项目中,然后从那里进行所需的设置即可.祝你好运!
Yes, it's absolutely possible. You will just have to add the SpriteKit framework to your empty project like any other framework and do the required setup from there. Good luck!
这篇关于空应用程序混合Sprite套件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!