I try to use a Swift class in Objective C and let the Objective C class "GameScene" receive delegate calls from the swift class. But from within the swift class I get the error "Cannot Invoke drawTopEdge with an argument list of type '(int, col:int)'
//above in the code
var maze:[[Int]]!
////////////////
func display() { //this is in the swift class
for i in 0..<y {
// Draw top edge
for j in 0..<x {
print((maze[j][i] & 1) == 0 ? "+---" : "+ ")
if ((maze[j][i] & 1) == 0) {
delegate!.drawTopEdge(j, col: i) //Error see picture attached and above
}
}
//This is in the GameScene class
-(void)drawTopEdge:(NSUInteger)r col:(int)c;
-(void)drawLeftEdge:(NSUInteger)r col:(int)c;
-(void)drawBottomEdge:(NSUInteger)r col:(int)c;