gpt4 book ai didi

iphone - Kobold2d - 方向

转载 作者:行者123 更新时间:2023-11-29 13:28:18 26 4
gpt4 key购买 nike

我在 cocos2d 中创建了一个游戏,因为我想使用我找到的一些 UIKit 元素 kobold2d。

我移植了游戏,但问题是我的 iPhone 刺激器旋转了,

但不是显示的节点。

必须使用:

background.rotation = 270;

对于我创建的每个 Sprite ,或者我忽略了一个方法

我将 Kobold2D v2.0.3 与 xCode 4.5 结合使用。 enter image description here

最佳答案

在 KKAppDelegate.m 中,更改此行:

// set the Navigation Controller as the root view controller
[window addSubview:navController.view];

为此:

// set the Navigation Controller as the root view controller
window.rootViewController = navController;

我会尽快发布更新版本。

关于iphone - Kobold2d - 方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12529101/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com