//参数标签'(_ :, _ :)'不匹配任何可用的重载行12
//Ground
href
答案 0 :(得分:3)
根据Apple的文档,<ul class="days">
<li th:each="s : ${days}" th:with="found=${false}">
<span th:each="item : ${items}" th:if="{$item.day == s}">
<span th:text="${s}" th:classappend="active" th:href
th:with="${found} = true"></span>
</span>
<span th:if="{$found == false}">
<span th:text="${s}"></span>
</span>
</li>
</ul>
的init方法如下:CGSize
。您可以在这里阅读有关内容:https://developer.apple.com/documentation/coregraphics/cgsize/1456247-init
所以您需要做的是更改此行:
init(width: Int, height: Int)
对此:
ground.physicsBody = SKPhysicsBody(rectangleOfSize: CGSize(self.frame.size.width, groundTexture.size().height * 2.0))