【发布时间】:2019-05-24 02:40:12
【问题描述】:
func dropShape() {
if let shape = fallingShape {
while detectIllegalPlacement() == false {
shape.lowerShapeByOneRow()
}
shape.raiseShapeByOneRow()
delegate?.gameShapeDidDrop(self)
}
}
您好,我正在接受“dropShape()”的无效重新声明,所以我做错了什么。谁能帮帮我
【问题讨论】:
-
我猜你已经在应用程序的其他地方声明了
dropShape()。 -
你已经声明了两个同名的方法。还要检查您是否没有使用
dropShape声明任何变量。 -
redeclaration 和 recompile 都可能导致该问题。