【发布时间】:2013-11-22 16:12:05
【问题描述】:
我刚刚对此进行了编码,然后弹出一个错误(使用未声明的标识符“RandomPosition”)。我是 xCode 的新手,我需要帮助...这些是行:
RandomPosition = arc4random() %25;
RandomPosition = RandomPosition + 75;
Obstacle.center = CGPointMake(570, RandomPosition);
RandomPosition = arc4random() %1;
Floor.center = CGPointMake(550, 1);
另外,你们中有人知道如何在 xCode 中让角色跳跃吗?
非常感谢!
【问题讨论】:
-
欢迎来到 Stackoverflow。快速搜索得到 this。我知道您是新手,但请记住,您的一些研究对帮助您有很长的路要走。到目前为止,您尝试过什么吗?请先展示您的努力,以便其他人可以帮助您。另外,请阅读FAQ 和How to Ask
标签: xcode5 undeclared-identifier