我可以在具有Apple开发工具包的Mac上进行开发,我可以将本机iOS UI与游戏图形结合吗?
我还没有看到这样的例子,我所有的搜索都被跨平台UI技术淹没了。
编辑
UIKit和SpriteKit是可组合的Apple模块。
给我的印象是,您可能可以在基于UIKit的项目中呈现场景,如果您了解得更多,请纠正我。
答案 0 :(得分:0)
如果您要谈论将SKView嵌入UIViewController中,我想下面的链接可能对您有所帮助:
UIView
设置为SKView
到任何UIViewController
中。如果要引用而不是使用图形化UIKit元素(例如开关,滑块,表格视图等),则应使用UIView动画:
可以实现一个简单的动画(使用:
UIView.animate(withDuration: 0.25, delay: 0.0, options: [], animations: {
self.frame = CGRect(x: 0, y: 0, width: self.frame.size.width / 2, height: self.frame.size.height / 2)
}, completion: { (finished: Bool) in
// do whatever you want when the animation has completed.
})